{ "db": "PostgreSQL", "013bba83291737bee7a9b0f48cd415b7b8a3fd0010fb243ee0ce33fc56ab5f6a": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE\n e.aggregate_type_id = $1 AND\n e.id > $2 AND\n e.id <= $3\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Int8", "Int8" ] }, "nullable": [ false, false, null, true, false, false ] } }, "0c51bb764a836857adf4585d80f665f75f56bcca283bd05625962b3fe42bb1cd": { "query": "SELECT \n n.id,\n n.name\nFROM event_meta n\nWHERE n.aggregate_type_id = $1\n-- get most recently created\nORDER BY n.id DESC\n-- cache size\nLIMIT $2;", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Int4" }, { "ordinal": 1, "name": "name", "type_info": "Text" } ], "parameters": { "Left": [ "Int4", "Int8" ] }, "nullable": [ false, false ] } }, "281b0ccf63d5c2b3d3dacfcb6075cf23d920779662ae0a6b4eef5614191a31ab": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE\n e.aggregate_type_id = $1 AND\n e.aggregate_id = $2 AND\n e.id > $3 AND\n e.id <= $4\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Uuid", "Int8", "Int8" ] }, "nullable": [ false, false, null, true, false, false ] } }, "4cdd95a16f2792e3fd2c99627b8306408bf61bc50ed05dc75fcb4b0f59e918d9": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE\n e.aggregate_type_id = $1 AND\n e.id > $2 AND\n e.aggregate_id = $3\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Int8", "Uuid" ] }, "nullable": [ false, false, null, true, false, false ] } }, "5b0314e31430fb01a7d1d81309a68f5e86eb20368ec7d26aadfba2b6131e1fb7": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\n INNER JOIN aggregate_consumer s\n ON\n s.name = $3 AND\n e.aggregate_type_id = s.aggregate_type_id AND\n e.id > coalesce(s.\"offset\", -9223372036854775808)\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE\n e.aggregate_type_id = $1 AND\n e.aggregate_id = $2\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Uuid", "Text" ] }, "nullable": [ false, false, null, true, false, false ] } }, "5cb94eb0af5b94efeec8495f45f6b9d454b3150f421363047865f19b72fb1c16": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE e.aggregate_type_id = $1 AND e.id > $2\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Int8" ] }, "nullable": [ false, false, null, true, false, false ] } }, "68146422ac75537c86006dc5373d7890cf11fca27a48a78fc74ada23d4abf6aa": { "query": "SELECT * FROM append_to_store($1, $2, $3, $4, $5);", "describe": { "columns": [ { "ordinal": 0, "name": "appended_ids", "type_info": "Int8Array" } ], "parameters": { "Left": [ "Int4", "Uuid", { "Custom": { "name": "_append_event_data", "kind": { "Array": { "Custom": { "name": "append_event_data", "kind": { "Composite": [ [ "bytes", "Bytea" ], [ "json", "Text" ], [ "meta_id", "Int4" ], [ "time", "Int8" ] ] } } } } } }, "Bool", "Int8" ] }, "nullable": [ null ] } }, "787520d51c4d3ec61ba3d3648093360c70e60d82c6aa889776e1e45b40561ded": { "query": "SELECT * FROM consumer_offset($1, $2, $3);", "describe": { "columns": [ { "ordinal": 0, "name": "_offset", "type_info": "Int8" } ], "parameters": { "Left": [ "Text", "Int4", "Uuid" ] }, "nullable": [ null ] } }, "a51e274a330cc46dc3fd2e644dbad205df801509ef2c8f0e93c5652f6fa1f59d": { "query": "SELECT * FROM aggregate_type_id($1);", "describe": { "columns": [ { "ordinal": 0, "name": "_id", "type_info": "Int4" } ], "parameters": { "Left": [ "Text" ] }, "nullable": [ null ] } }, "bfd1a76463919b3c14324cbe5130b4e92478bf8b0f21f55a35090c47ae6dd3f7": { "query": "UPDATE aggregate_consumer s\nSET \"offset\" = $2\nWHERE s.\"name\" = $1;", "describe": { "columns": [], "parameters": { "Left": [ "Text", "Int8" ] }, "nullable": [] } }, "d6f2ed53a8b93d255b81974c19261e33a9f0734de8b8c47fa638e26cf25d1829": { "query": "SELECT\n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\n INNER JOIN aggregate_consumer s\n ON\n s.name = $2 AND\n e.aggregate_type_id = s.aggregate_type_id AND\n e.id > coalesce(s.\"offset\", -9223372036854775808)\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE e.aggregate_type_id = $1\nORDER BY e.id;", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Text" ] }, "nullable": [ false, false, null, true, false, false ] } }, "dc083105da565534eb3f4e27eba14a432b5b3008488725fefdb625a471902ac8": { "query": "SELECT * FROM event_meta_id($1, $2, $3, $4);", "describe": { "columns": [ { "ordinal": 0, "name": "_id", "type_info": "Int4" } ], "parameters": { "Left": [ "Int4", "Text", "Text", { "Custom": { "name": "payload_encoding", "kind": { "Enum": [ "json", "cbor" ] } } } ] }, "nullable": [ null ] } }, "e1edc13fe1bc8c16533a4549a560b1dbe5689af986964f611e372347c40c1ca3": { "query": "DELETE FROM event\n WHERE\n aggregate_type_id = $1 AND\n aggregate_id = $2;", "describe": { "columns": [], "parameters": { "Left": [ "Int4", "Uuid" ] }, "nullable": [] } }, "f007137b680cda93364690428e4325edeb884ae65fa9365d7c4de27a7a01facb": { "query": "SELECT \n e.aggregate_id,\n n.name,\n e.json::TEXT,\n e.bytes,\n e.time,\n e.id\nFROM event e\nLEFT JOIN event_meta n\n ON e.meta_id = n.id\nWHERE\n e.aggregate_type_id = $1 AND\n e.aggregate_id = $2\nORDER BY e.time", "describe": { "columns": [ { "ordinal": 0, "name": "aggregate_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "name", "type_info": "Text" }, { "ordinal": 2, "name": "json", "type_info": "Text" }, { "ordinal": 3, "name": "bytes", "type_info": "Bytea" }, { "ordinal": 4, "name": "time", "type_info": "Int8" }, { "ordinal": 5, "name": "id", "type_info": "Int8" } ], "parameters": { "Left": [ "Int4", "Uuid" ] }, "nullable": [ false, false, null, true, false, false ] } }, "fa74eef5d7600b7bc9506119347ff869c27484651d736751951e6aa3d1e3b2a1": { "query": "SELECT * FROM try_consumer_checkout($1, $2);", "describe": { "columns": [ { "ordinal": 0, "name": "try_consumer_checkout", "type_info": "Void" } ], "parameters": { "Left": [ "Text", "Int8" ] }, "nullable": [ null ] } } }