{ "db_name": "PostgreSQL", "query": "\n INSERT INTO transactions (id, account_id, amount_cents, direction, date, description)\n VALUES ($1, $2, $3, $4, $5, $6)\n\t\tON CONFLICT (id) DO UPDATE SET\n account_id = EXCLUDED.account_id,\n\t\t\tamount_cents = EXCLUDED.amount_cents,\n\t\t\tdirection = EXCLUDED.direction,\n\t\t\tdate = EXCLUDED.date,\n\t\t\tdescription = EXCLUDED.description\n\t\tRETURNING WITH (OLD AS old_row, NEW AS new_row)\n\t\t\told_row.id AS \"old_id?\",\n\t\t\tnew_row.id AS \"id!\",\n new_row.account_id AS \"account_id!\",\n\t\t\tnew_row.amount_cents AS \"amount_cents!\",\n\t\t\tnew_row.direction AS \"direction!\",\n\t\t\tnew_row.date AS \"date!\",\n\t\t\tnew_row.description AS \"description!\"\n\t\t", "describe": { "columns": [ { "ordinal": 0, "name": "old_id?", "type_info": "Uuid", "origin": { "Table": { "table": "transactions", "name": "id" } } }, { "ordinal": 1, "name": "id!", "type_info": "Uuid", "origin": { "Table": { "table": "transactions", "name": "id" } } }, { "ordinal": 2, "name": "account_id!", "type_info": "Uuid", "origin": { "Table": { "table": "transactions", "name": "account_id" } } }, { "ordinal": 3, "name": "amount_cents!", "type_info": "Int8", "origin": { "Table": { "table": "transactions", "name": "amount_cents" } } }, { "ordinal": 4, "name": "direction!", "type_info": "Text", "origin": { "Table": { "table": "transactions", "name": "direction" } } }, { "ordinal": 5, "name": "date!", "type_info": "Timestamptz", "origin": { "Table": { "table": "transactions", "name": "date" } } }, { "ordinal": 6, "name": "description!", "type_info": "Text", "origin": { "Table": { "table": "transactions", "name": "description" } } } ], "parameters": { "Left": [ "Uuid", "Uuid", "Int8", "Text", "Timestamptz", "Text" ] }, "nullable": [ false, false, false, false, false, false, false ] }, "hash": "8999f47eebb460120538c7d2bdbb40dadf634e98977ae59d2398579f9be82d6f" }