{ "API functions > list records as the caller: their tenant and row filter, as in the REST API": { "(hooks)#0": [ {"sql":"select relkind from pg_class where oid = to_regclass($1)","params":["\"labels\""],"result":{"command":"SELECT","rowCount":1,"columns":[["relkind",18]],"rows":[["r"]]}}, {"sql":"\n select ic.relname as name, am.amname as method, (i.indpred is not null) as partial, a.attname::text as column,\n pg_get_indexdef(i.indexrelid, k.ord::int, true) as definition, oc.opcname::text as opclass\n from pg_index i\n join pg_class ic on ic.oid = i.indexrelid\n join pg_am am on am.oid = ic.relam\n cross join lateral unnest(i.indkey::int2[], i.indclass::oid[]) with ordinality k(attnum, opclass, ord)\n left join pg_attribute a on a.attrelid = i.indrelid and a.attnum = k.attnum and k.attnum > 0\n join pg_opclass oc on oc.oid = k.opclass\n where i.indrelid = to_regclass($1) and i.indisvalid and i.indisready and k.ord <= i.indnkeyatts\n order by ic.relname, k.ord\n ","params":["\"labels\""],"result":{"command":"SELECT","rowCount":1,"columns":[["name",19],["method",19],["partial",16],["column",25],["definition",25],["opclass",25]],"rows":[["labels_pkey","btree","f","id","id","int4_ops"]]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"t\".\"id\" as \"id\", \"t\".\"organization_id\" as \"organizationId\", \"t\".\"name\" as \"name\", \"t\".\"color\" as \"color\", \"t\".\"code\" as \"code\", \"t\".\"id\"::text as \"__pb_key0\" from \"labels\" as \"t\" where \"t\".\"organization_id\" = $1 order by \"t\".\"id\" asc limit $2","params":["1","51"],"result":{"command":"SELECT","rowCount":2,"columns":[["id",23],["organizationId",23],["name",25],["color",25],["code",25],["__pb_key0",25]],"rows":[ ["1","1","urgent","red","c4ca4238a0b923820dcc509a6f75849b","1"], ["2","1","later",null,"c81e728d9d4c2f636f067f89cc14862c","2"] ]}}, {"sql":"EXPLAIN (VERBOSE, FORMAT JSON) select 1 as \"one\" from \"labels\" as \"t\" where \"t\".\"organization_id\" = $1","params":["1"],"result":{"command":"EXPLAIN","rowCount":null,"columns":[["QUERY PLAN",114]],"rows":[["[\n {\n \"Plan\": {\n \"Node Type\": \"Seq Scan\",\n \"Parallel Aware\": false,\n \"Async Capable\": false,\n \"Relation Name\": \"labels\",\n \"Schema\": \"public\",\n \"Alias\": \"t\",\n \"Startup Cost\": 0.00,\n \"Total Cost\": 1.04,\n \"Plan Rows\": 2,\n \"Plan Width\": 4,\n \"Disabled\": false,\n \"Output\": [\"1\"],\n \"Filter\": \"(t.organization_id = 1)\"\n }\n }\n]"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"t\".\"id\" as \"id\", \"t\".\"organization_id\" as \"organizationId\", \"t\".\"name\" as \"name\", \"t\".\"color\" as \"color\", \"t\".\"code\" as \"code\", \"t\".\"id\"::text as \"__pb_key0\" from \"labels\" as \"t\" where \"t\".\"organization_id\" = $1 order by \"t\".\"id\" asc limit $2","params":["2","51"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["color",25],["code",25],["__pb_key0",25]],"rows":[["3","2","other-org","blue","eccbc87e4b5ce2fe28308fd9f2a7baf3","3"]]}}, {"sql":"EXPLAIN (VERBOSE, FORMAT JSON) select 1 as \"one\" from \"labels\" as \"t\" where \"t\".\"organization_id\" = $1","params":["2"],"result":{"command":"EXPLAIN","rowCount":null,"columns":[["QUERY PLAN",114]],"rows":[["[\n {\n \"Plan\": {\n \"Node Type\": \"Seq Scan\",\n \"Parallel Aware\": false,\n \"Async Capable\": false,\n \"Relation Name\": \"labels\",\n \"Schema\": \"public\",\n \"Alias\": \"t\",\n \"Startup Cost\": 0.00,\n \"Total Cost\": 1.04,\n \"Plan Rows\": 1,\n \"Plan Width\": 4,\n \"Disabled\": false,\n \"Output\": [\"1\"],\n \"Filter\": \"(t.organization_id = 2)\"\n }\n }\n]"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select relkind from pg_class where oid = to_regclass($1)","params":["\"companies\""],"result":{"command":"SELECT","rowCount":1,"columns":[["relkind",18]],"rows":[["r"]]}}, {"sql":"\n select ic.relname as name, am.amname as method, (i.indpred is not null) as partial, a.attname::text as column,\n pg_get_indexdef(i.indexrelid, k.ord::int, true) as definition, oc.opcname::text as opclass\n from pg_index i\n join pg_class ic on ic.oid = i.indexrelid\n join pg_am am on am.oid = ic.relam\n cross join lateral unnest(i.indkey::int2[], i.indclass::oid[]) with ordinality k(attnum, opclass, ord)\n left join pg_attribute a on a.attrelid = i.indrelid and a.attnum = k.attnum and k.attnum > 0\n join pg_opclass oc on oc.oid = k.opclass\n where i.indrelid = to_regclass($1) and i.indisvalid and i.indisready and k.ord <= i.indnkeyatts\n order by ic.relname, k.ord\n ","params":["\"companies\""],"result":{"command":"SELECT","rowCount":11,"columns":[["name",19],["method",19],["partial",16],["column",25],["definition",25],["opclass",25]],"rows":[ ["companies_organization_id_created_at_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_created_at_idx","btree","f","created_at","created_at","timestamptz_ops"], ["companies_organization_id_id_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_id_idx","btree","f","id","id","int4_ops"], ["companies_organization_id_name_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_name_idx","btree","f","name","name","text_ops"], ["companies_organization_id_revenue_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_revenue_idx","btree","f","revenue","revenue","numeric_ops"], ["companies_organization_id_status_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_status_idx","btree","f","status","status","text_ops"], ["companies_pkey","btree","f","id","id","int4_ops"] ]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"t\".\"id\" as \"id\", \"t\".\"organization_id\" as \"organizationId\", \"t\".\"name\" as \"name\", \"t\".\"status\" as \"status\", \"t\".\"revenue\" as \"revenue\", \"t\".\"notes\" as \"notes\", \"t\".\"meta\" as \"meta\", \"t\".\"created_at\" as \"createdAt\", \"t\".\"updated_at\" as \"updatedAt\", \"t\".\"deleted_at\" as \"deletedAt\", \"t\".\"updated_at\"::text as \"__pb_etag\", \"t\".\"id\"::text as \"__pb_key0\" from \"companies\" as \"t\" where \"t\".\"deleted_at\" is null and \"t\".\"organization_id\" = $1 and \"t\".\"status\" = $2 and \"t\".\"revenue\" > $3 order by \"t\".\"id\" asc limit $4","params":["1","open","990","6"],"result":{"command":"SELECT","rowCount":6,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25],["__pb_key0",25]],"rows":[ ["993","1","Company 993","open","993.00",null,null,"2026-07-13 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","993"], ["996","1","Company 996","open","996.00",null,null,"2026-07-16 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","996"], ["999","1","Company 999","open","999.00",null,null,"2026-07-19 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","999"], ["1992","1","Company 1992","open","992.00",null,null,"2026-07-12 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","1992"], ["1995","1","Company 1995","open","995.00",null,null,"2026-07-15 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","1995"], ["1998","1","Company 1998","open","998.00",null,null,"2026-07-18 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","1998"] ]}}, {"sql":"EXPLAIN (VERBOSE, FORMAT JSON) select 1 as \"one\" from \"companies\" as \"t\" where \"t\".\"deleted_at\" is null and \"t\".\"organization_id\" = $1 and \"t\".\"status\" = $2 and \"t\".\"revenue\" > $3","params":["1","open","990"],"result":{"command":"EXPLAIN","rowCount":null,"columns":[["QUERY PLAN",114]],"rows":[["[\n {\n \"Plan\": {\n \"Node Type\": \"Index Scan\",\n \"Parallel Aware\": false,\n \"Async Capable\": false,\n \"Scan Direction\": \"Forward\",\n \"Index Name\": \"companies_organization_id_revenue_idx\",\n \"Relation Name\": \"companies\",\n \"Schema\": \"public\",\n \"Alias\": \"t\",\n \"Startup Cost\": 0.28,\n \"Total Cost\": 40.41,\n \"Plan Rows\": 8,\n \"Plan Width\": 4,\n \"Disabled\": false,\n \"Output\": [\"1\"],\n \"Index Cond\": \"((t.organization_id = 1) AND (t.revenue > '990'::numeric))\",\n \"Filter\": \"((t.deleted_at IS NULL) AND (t.status = 'open'::text))\"\n }\n }\n]"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "API functions > write through the pipeline as the caller: tenant, validation, hooks and access rules": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"insert into \"companies\" (\"name\", \"status\", \"revenue\", \"organization_id\") values ($1, $2, $3, $4) returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\"","params":["Initech","open","0","1"],"result":{"command":"INSERT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3501","1","Initech","open","0.00",null,null,"{{now:1: :-:+00}}","{{now:1: :-:+00}}",null,"{{now:1: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\" from \"companies\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","3501"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3501","1","Initech","open","0.00",null,null,"{{now:1: :-:+00}}","{{now:1: :-:+00}}",null,"{{now:1: :-:+00}}"]]}}, {"sql":"update \"companies\" as t set \"status\" = $1, \"updated_at\" = clock_timestamp() where \"deleted_at\" is null and \"organization_id\" = $2 and \"id\" = $3 returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\"","params":["won","1","3501"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3501","1","Initech","won","0.00",null,null,"{{now:1: :-:+00}}","{{now:2: :-:+00}}",null,"{{now:2: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\" from \"companies\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","3501"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3501","1","Initech","won","0.00",null,null,"{{now:1: :-:+00}}","{{now:2: :-:+00}}",null,"{{now:2: :-:+00}}"]]}}, {"sql":"update \"companies\" as t set \"deleted_at\" = clock_timestamp() where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\"","params":["1","3501"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3501","1","Initech","won","0.00",null,null,"{{now:1: :-:+00}}","{{now:2: :-:+00}}","{{now:3: :-:+00}}","{{now:2: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"sales\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"insert into \"companies\" (\"name\", \"status\", \"revenue\", \"organization_id\") values ($1, $2, $3, $4) returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\"","params":["Hooli","open","0","1"],"result":{"command":"INSERT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3502","1","Hooli","open","0.00",null,null,"{{now:4: :-:+00}}","{{now:4: :-:+00}}",null,"{{now:4: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"sales\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\" from \"companies\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 and \"t\".\"status\" = $3 limit 1 for update","params":["1","3502","open"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3502","1","Hooli","open","0.00",null,null,"{{now:4: :-:+00}}","{{now:4: :-:+00}}",null,"{{now:4: :-:+00}}"]]}}, {"sql":"update \"companies\" as t set \"status\" = $1, \"updated_at\" = clock_timestamp() where \"deleted_at\" is null and \"organization_id\" = $2 and \"id\" = $3 returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"status\" as \"status\", \"revenue\" as \"revenue\", \"notes\" as \"notes\", \"meta\" as \"meta\", \"created_at\" as \"createdAt\", \"updated_at\" as \"updatedAt\", \"deleted_at\" as \"deletedAt\", \"updated_at\"::text as \"__pb_etag\"","params":["won","1","3502"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25]],"rows":[["3502","1","Hooli","won","0.00",null,null,"{{now:4: :-:+00}}","{{now:5: :-:+00}}",null,"{{now:5: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), pg_logical_emit_message(true, $3, $4::text) is not null","params":["statement_timeout","1000","protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["?column?",16]],"rows":[["1s","t"]]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}} ] }, "API functions > give the raw database to privileged work, past tenants and rules": { "(hooks)#0": [ {"sql":"select count(*) as \"count\" from \"labels\"","result":{"command":"SELECT","rowCount":1,"columns":[["count",20]],"rows":[["3"]]}} ] }, "API functions > serve a Hono app as the caller, and need a token unless public": { "(hooks)#0": [ {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"color\" as \"color\", \"code\" as \"code\" from \"labels\" as t where \"organization_id\" = $1 and \"id\" = $2 limit 1","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["color",25],["code",25]],"rows":[["1","1","urgent","red","c4ca4238a0b923820dcc509a6f75849b"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"color\" as \"color\", \"code\" as \"code\" from \"labels\" as t where \"organization_id\" = $1 and \"id\" = $2 limit 1","params":["1","3"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",23],["organizationId",23],["name",25],["color",25],["code",25]],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] } }