sqlx prepare3

This commit is contained in:
Priec
2026-08-19 14:53:01 +02:00
parent e3578f5413
commit ec39e11df1
34 changed files with 1235 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT td.id, td.table_name, td.columns, td.schema_id,\n s.name AS schema_name\n FROM table_definitions td\n JOIN schemas s ON s.id = td.schema_id\n WHERE td.id = $1\n FOR UPDATE OF td\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 2,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
},
{
"ordinal": 3,
"name": "schema_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "schema_id"
}
}
},
{
"ordinal": 4,
"name": "schema_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "schemas",
"name": "name"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "17836f6796fd1e20bd617fdef33eeaccc5a228189424edc4c79962ac8083e6e3"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM schemas WHERE name = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "schemas",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "2cada26bcc13af76e04e01a13a25c0d4f448dcdbda5cc31207668ac232cc9f85"
}

View File

@@ -0,0 +1,64 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT id, table_name, columns, indexes\n FROM table_definitions\n WHERE id = $1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 2,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
},
{
"ordinal": 3,
"name": "indexes",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "indexes"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false
]
},
"hash": "339c149cac9a6a9a50dd78fd5d1a67bfa0d35689d6df35cd37a8097696637c97"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM table_definitions WHERE table_name = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "362deafa1a425168054c706cabea01de045c8a3c123b17a2e246f4c3cc971e91"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM table_definitions WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "39d6176d6c3c4b647e4deb7cd7822a03c210ae5ec8a395f4fd3fb87dabe9ecc6"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM script_dependencies WHERE script_id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "4ceba24cb5232bae038dc3dafb4dc2e49b5f84add6ae804001a1f6f3dd1d0425"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE table_definitions SET columns = $1 WHERE id = $2",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Jsonb",
"Int8"
]
},
"nullable": []
},
"hash": "52922d745cf218b098b39edee4b0a6a07b54b5e8e167c21f15cbba1590fc5b6d"
}

View File

@@ -0,0 +1,29 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT td.id\n FROM table_definitions td\n JOIN schemas s ON td.schema_id = s.id\n WHERE s.name = $1 AND td.table_name = $2\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
false
]
},
"hash": "5a68e8ba3172d5142c4d240d75ed8ebeb441171368839f938081c5d87c431ddf"
}

View File

@@ -0,0 +1,100 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT sd.script_id, sd.source_table_id, sd.target_table_id,\n td.table_name as target_table_name,\n link_column.display_name AS \"link_column?\",\n sd.dependency_type, sd.context_info\n FROM script_dependencies sd\n JOIN table_definitions td ON td.id = sd.target_table_id\n LEFT JOIN table_definition_columns link_column ON link_column.id = sd.link_column_id\n WHERE script_id = $1\n ORDER BY sd.source_table_id, sd.target_table_id\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "script_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "script_id"
}
}
},
{
"ordinal": 1,
"name": "source_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "source_table_id"
}
}
},
{
"ordinal": 2,
"name": "target_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "target_table_id"
}
}
},
{
"ordinal": 3,
"name": "target_table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 4,
"name": "link_column?",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definition_columns",
"name": "display_name"
}
}
},
{
"ordinal": 5,
"name": "dependency_type",
"type_info": "Text",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "dependency_type"
}
}
},
{
"ordinal": 6,
"name": "context_info",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "context_info"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
true
]
},
"hash": "5c28cb03956122a62abc2283f8e71da6a4398ae02a77b228598654d6620beee0"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM schemas WHERE name = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "5ecd8f45325f91245412822bbb30bd8f4b0dca1ead1b94d343de9a47f3503228"
}

View File

@@ -0,0 +1,40 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id, table_name FROM table_definitions WHERE schema_id = $1 ORDER BY table_name",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false
]
},
"hash": "5f8877887d62f09afb3ee2e6e3ee64daa64a561aba427a6c5a79f18a2586b8b5"
}

View File

@@ -0,0 +1,41 @@
{
"db_name": "PostgreSQL",
"query": "SELECT table_name, columns FROM table_definitions\n WHERE schema_id = $1 AND table_name = ANY($2)",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 1,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
}
],
"parameters": {
"Left": [
"Int8",
"TextArray"
]
},
"nullable": [
false,
false
]
},
"hash": "60fdb265a03e74fe944649702da45380383cfd073ac0f542340b01fbca31925f"
}

View File

@@ -0,0 +1,24 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM table_definitions td\n JOIN schemas p ON td.schema_id = p.id\n WHERE p.name = $1 AND td.table_name = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "72ae093efb700a082d554e8b75ae7ccc6f14c7fc389756827ba1b634a98a1d66"
}

View File

@@ -0,0 +1,88 @@
{
"db_name": "PostgreSQL",
"query": "SELECT sd.target_table_id, sd.dependency_type AS \"dependency_type!\", sd.context_info,\n td.table_name AS \"target_table!\",\n link_column.display_name AS \"link_column?\",\n column_meta.display_name AS \"column_alias?\"\n FROM script_dependencies sd\n JOIN table_definitions td ON sd.target_table_id = td.id\n LEFT JOIN table_definition_columns link_column\n ON link_column.id = sd.link_column_id\n LEFT JOIN table_definition_columns column_meta\n ON column_meta.table_definition_id = td.id\n AND column_meta.physical_name = sd.context_info->>'column'\n WHERE sd.script_id = ANY($1)",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "target_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "target_table_id"
}
}
},
{
"ordinal": 1,
"name": "dependency_type!",
"type_info": "Text",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "dependency_type"
}
}
},
{
"ordinal": 2,
"name": "context_info",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "context_info"
}
}
},
{
"ordinal": 3,
"name": "target_table!",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 4,
"name": "link_column?",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definition_columns",
"name": "display_name"
}
}
},
{
"ordinal": 5,
"name": "column_alias?",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definition_columns",
"name": "display_name"
}
}
}
],
"parameters": {
"Left": [
"Int8Array"
]
},
"nullable": [
true,
true,
true,
true,
false,
true
]
},
"hash": "739059410d10fc1d50ce1f96037c7d01b0c596ad7db71e6047f1d3bdc9400b6d"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM table_definitions WHERE schema_id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "7deb763f18341084f067d37376176fffa2d0739eca23ec52da2bad2324b342fd"
}

View File

@@ -0,0 +1,71 @@
{
"db_name": "PostgreSQL",
"query": "SELECT \n st.table_name as source_table,\n tt.table_name as target_table,\n sd.dependency_type,\n sd.context_info,\n COUNT(*) as \"dependency_count!\"\n FROM script_dependencies sd\n JOIN table_definitions st ON sd.source_table_id = st.id\n JOIN table_definitions tt ON sd.target_table_id = tt.id\n WHERE st.schema_id = $1\n GROUP BY st.table_name, tt.table_name, sd.dependency_type, sd.context_info\n ORDER BY st.table_name, tt.table_name",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "source_table",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 1,
"name": "target_table",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 2,
"name": "dependency_type",
"type_info": "Text",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "dependency_type"
}
}
},
{
"ordinal": 3,
"name": "context_info",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "context_info"
}
}
},
{
"ordinal": 4,
"name": "dependency_count!",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
true,
null
]
},
"hash": "96f4559652609ba82df171a8efaaa3f1febb1074db31be8257cbd09c8dce0abd"
}

View File

@@ -0,0 +1,40 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id, columns FROM table_definitions WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false
]
},
"hash": "a0c0cf9289631d7037d6113d346714518599ce49e403cee9c7ff68048055bfed"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT table_name FROM table_definitions WHERE schema_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
},
"hash": "a700f750c32fb737108520217ab8027a1b669a3655acee3b45b2ef7f64094f47"
}

View File

@@ -0,0 +1,64 @@
{
"db_name": "PostgreSQL",
"query": "SELECT sd.source_table_id, sd.target_table_id, st.table_name as source_table, tt.table_name as target_table\n FROM script_dependencies sd\n JOIN table_definitions st ON sd.source_table_id = st.id\n JOIN table_definitions tt ON sd.target_table_id = tt.id\n WHERE st.schema_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "source_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "source_table_id"
}
}
},
{
"ordinal": 1,
"name": "target_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "target_table_id"
}
}
},
{
"ordinal": 2,
"name": "source_table",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 3,
"name": "target_table",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false,
false,
false
]
},
"hash": "b9a9b9655040f8d6d636ca4f30fda3732b5d70afac9025fa136dfb6f47c7bde2"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM table_validation_rules WHERE table_def_id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "c00efe465462eed1a14ea3a3fd2ccf8535b6fc7f6eaab16196dc29940b351314"
}

View File

@@ -0,0 +1,40 @@
{
"db_name": "PostgreSQL",
"query": "SELECT source_table_id, target_table_id\n FROM script_dependencies sd\n JOIN table_definitions td ON sd.source_table_id = td.id\n WHERE td.schema_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "source_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "source_table_id"
}
}
},
{
"ordinal": 1,
"name": "target_table_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "script_dependencies",
"name": "target_table_id"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false,
false
]
},
"hash": "c6f470487b1b3714e09c399aca2abbe33b21e5b7b654d18d63cbe775e1a1ba45"
}

View File

@@ -0,0 +1,29 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM table_definitions WHERE schema_id = $1 AND table_name = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false
]
},
"hash": "d3ed73ade96da8e5d86c1bb7986017dc0dc5f09c6c3c8ebd21e0623e095a5cd7"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT script FROM table_scripts WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "script",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_scripts",
"name": "script"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
},
"hash": "d679e3dc441d49a9b80d86706d3fedaafe6e26af0830516e88ad87b0b2f5d527"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO schemas (name) VALUES ($1) RETURNING id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "schemas",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "db54895c3374fcf0350103caf03604c60fb37077eb83754161cb546425912ca9"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM table_definition_links WHERE source_table_id IN (SELECT id FROM table_definitions WHERE schema_id = $1) OR linked_table_id IN (SELECT id FROM table_definitions WHERE schema_id = $1)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "dd3e9592a2d15ad138880cc5a49b38880fc1c47ab6ee28ef4ec7ab91358cf220"
}

View File

@@ -0,0 +1,19 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO script_dependencies\n (script_id, source_table_id, target_table_id, dependency_type, context_info,\n link_column_id)\n VALUES ($1, $2, $3, $4, $5, $6)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Int8",
"Int8",
"Text",
"Jsonb",
"Int8"
]
},
"nullable": []
},
"hash": "ddf445860abf268d67eeb398847b1fd57a5a0a4e3407de21b09897e0c54a564b"
}

View File

@@ -0,0 +1,53 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id, table_name, columns FROM table_definitions\n WHERE schema_id = $1 AND table_name = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_definitions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
},
{
"ordinal": 2,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false,
false,
false
]
},
"hash": "e3538ce682101997bccffca14b82df99350fb6d88990067b637af85c209c7568"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(*) FROM table_definitions WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8",
"origin": "Expression"
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
null
]
},
"hash": "e4b81febb08514f00b88eb91207eb6de6b326b8b5077ad2b6c493bf4e8fb1290"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT table_name FROM table_definitions WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "table_name",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definitions",
"name": "table_name"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
},
"hash": "e6ef405614c7499ee6e25cdc3811cc0e90bc7592ce7dc35673039b5978ffbb6b"
}

View File

@@ -0,0 +1,88 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT ts.id, ts.table_definitions_id,\n target_column.display_name AS target_column,\n ts.target_column_type, ts.script, ts.description\n FROM table_scripts ts\n JOIN table_definitions td ON ts.table_definitions_id = td.id\n JOIN table_definition_columns target_column\n ON target_column.table_definition_id = ts.table_definitions_id\n AND target_column.physical_name = ts.target_column\n WHERE td.id = ANY($1)\n ORDER BY ts.table_definitions_id, target_column.display_name\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_scripts",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "table_definitions_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "table_scripts",
"name": "table_definitions_id"
}
}
},
{
"ordinal": 2,
"name": "target_column",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_definition_columns",
"name": "display_name"
}
}
},
{
"ordinal": 3,
"name": "target_column_type",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_scripts",
"name": "target_column_type"
}
}
},
{
"ordinal": 4,
"name": "script",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_scripts",
"name": "script"
}
}
},
{
"ordinal": 5,
"name": "description",
"type_info": "Text",
"origin": {
"Table": {
"table": "table_scripts",
"name": "description"
}
}
}
],
"parameters": {
"Left": [
"Int8Array"
]
},
"nullable": [
false,
false,
false,
false,
false,
true
]
},
"hash": "e8031ef79f1ad297ab13893f8a507d49a2c2af2f5af1b820b68ecf49b0b9887a"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM table_definitions WHERE table_name = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "e84fe5ed6bef4b2f6a4919f393f076ad88c26360487aa5f8be32c8fb396f62cc"
}

View File

@@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT columns FROM table_definitions WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "columns",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "table_definitions",
"name": "columns"
}
}
}
],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": [
false
]
},
"hash": "f364f3665433ff5a2017e3fa24b54b695caba39d15e64365da95a8c2c9717018"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM schemas WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "f3886c06d621924a80c503d4adef617687a2b7dbb96627ff106f3870137660a6"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM schemas WHERE name = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "f6d8821c1dee47d8e8e442cc98269a02410baed07f4c35b2abc0d47a1d9040e7"
}