Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Clean up SQLite type inference #363

Merged
merged 2 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
314 changes: 313 additions & 1 deletion fuel-indexer-database/sqlite/sqlx-data.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,315 @@
{
"db": "SQLite"
"db": "SQLite",
"0d505a0dc9d47e93e0199d9aac857066ead908960437a3ca19033c7ba4aa1113": {
"describe": {
"columns": [
{
"name": "id: i64",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "root_id: i64",
"ordinal": 1,
"type_info": "Int64"
},
{
"name": "column_name",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "graphql_type",
"ordinal": 3,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false
],
"parameters": {
"Right": 1
}
},
"query": "SELECT\n id AS \"id: i64\", root_id AS \"root_id: i64\", column_name, graphql_type\n FROM graph_registry_root_columns\n WHERE root_id = $1"
},
"1b40ca9c21f996e453dc1314beb33ff0ad7247d3d96475326fa9c841e2fa90d1": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "type_id",
"ordinal": 1,
"type_info": "Int64"
},
{
"name": "column_position: i32",
"ordinal": 2,
"type_info": "Int64"
},
{
"name": "column_name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "column_type",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "nullable",
"ordinal": 5,
"type_info": "Bool"
},
{
"name": "graphql_type",
"ordinal": 6,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false,
false,
false
],
"parameters": {
"Right": 1
}
},
"query": "SELECT id, type_id, column_position as \"column_position: i32\", column_name, column_type, nullable, graphql_type FROM graph_registry_columns WHERE type_id = $1"
},
"2a7d1741198b91d9175b00373f51d793be5415583317ed1d42cd2a75cca51007": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "schema_version",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "schema_name",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "graphql_name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "table_name",
"ordinal": 4,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT id, schema_version, schema_name, graphql_name, table_name FROM graph_registry_type_ids WHERE schema_name = $1 AND schema_version = $2"
},
"36019354329ecc2bbc9db0bf9a85becfaa0010c6f2487466c9d13cc5a18794dc": {
"describe": {
"columns": [
{
"name": "type_id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "table_name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "column_position: i32",
"ordinal": 2,
"type_info": "Int64"
},
{
"name": "column_name",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "column_type",
"ordinal": 4,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT\n c.type_id as type_id,\n t.table_name as table_name,\n c.column_position as \"column_position: i32\",\n c.column_name as column_name,\n c.column_type as column_type\n FROM graph_registry_type_ids as t\n INNER JOIN graph_registry_columns as c\n ON t.id = c.type_id\n WHERE t.schema_name = $1\n AND t.schema_version = $2\n ORDER BY c.type_id, c.column_position"
},
"5b93a393328db44db231b71f4fd3fafca13efa1be7d021003f15774fec107015": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "namespace",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "identifier",
"ordinal": 2,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false
],
"parameters": {
"Right": 0
}
},
"query": "SELECT * FROM index_registry"
},
"6daf0d3b6d1ec9412ba138cae993af3736a64100a1fca6ee15520513e0cc580e": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "version",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "schema_name",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "query",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "schema",
"ordinal": 4,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false
],
"parameters": {
"Right": 1
}
},
"query": "SELECT * FROM graph_registry_graph_root WHERE schema_name = $1 ORDER BY id DESC LIMIT 1"
},
"7a923fd20d30d721a0b81ca4fad08b9ab90a34e78d93300cbdc0f6ec894bf223": {
"describe": {
"columns": [
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "namespace",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "identifier",
"ordinal": 2,
"type_info": "Text"
}
],
"nullable": [
true,
false,
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT id as \"id!\", namespace, identifier FROM index_registry WHERE namespace = $1 AND identifier = $2"
},
"a3eaf437c002e776fbf79f2d1461f797cec299713648da4df5ba4e262dda4e6e": {
"describe": {
"columns": [
{
"name": "schema_version",
"ordinal": 0,
"type_info": "Text"
}
],
"nullable": [
false
],
"parameters": {
"Right": 1
}
},
"query": "SELECT schema_version FROM graph_registry_type_ids WHERE schema_name = $1 ORDER BY id"
},
"c702c5958dd9f6faf516bf743fcc1d1b412882d3ac2e9351fac2cac2ea547e0f": {
"describe": {
"columns": [
{
"name": "num?: i64",
"ordinal": 0,
"type_info": "Int"
}
],
"nullable": [
false
],
"parameters": {
"Right": 2
}
},
"query": "SELECT count(*) as \"num?: i64\" FROM graph_registry_type_ids WHERE schema_name = $1 AND schema_version = $2"
}
}
Loading