{ "db_name": "PostgreSQL", "query": "\n SELECT\n COALESCE(SUM(t.amount_cents), 0)::BIGINT AS \"total!\",\n COUNT(*) AS \"count!\"\n FROM transactions t\n JOIN items i ON t.item_id = i.id\n WHERE i.project_id = $1\n AND t.status = 'completed'\n ", "describe": { "columns": [ { "ordinal": 0, "name": "total!", "type_info": "Int8" }, { "ordinal": 1, "name": "count!", "type_info": "Int8" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ null, null ] }, "hash": "e0029bd565e953e7b1f557d6ea88cfc0fe460b638c59c581e818c668a18c4e0a" }