{ "file fields > upload, attach, read and download a file, typed by its content": { "file fields > upload, attach, read and download a file, typed by its content#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41",null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select image from products where id = $1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25]],"rows":[["private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41"]]}}, {"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41",null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select relkind from pg_class where oid = to_regclass($1)","params":["\"products\""],"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":["\"products\""],"result":{"command":"SELECT","rowCount":1,"columns":[["name",19],["method",19],["partial",16],["column",25],["definition",25],["opclass",25]],"rows":[["products_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\".\"image\" as \"image\", \"t\".\"image_placeholder\" as \"imagePlaceholder\", \"t\".\"image_width\" as \"imageWidth\", \"t\".\"image_ratio\" as \"imageRatio\", \"t\".\"datasheet\" as \"datasheet\", \"t\".\"deleted_at\" as \"deletedAt\", \"t\".\"id\"::text as \"__pb_key0\" from \"products\" as \"t\" where \"t\".\"deleted_at\" is null and \"t\".\"organization_id\" = $1 order by \"t\".\"id\" asc limit $2","params":["1","51"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184],["__pb_key0",25]],"rows":[["1","1","Bike","private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41",null,null,null,null,null,"1"]]}}, {"sql":"EXPLAIN (VERBOSE, FORMAT JSON) select 1 as \"one\" from \"products\" as \"t\" where \"t\".\"deleted_at\" is null and \"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\": \"products\",\n \"Schema\": \"public\",\n \"Alias\": \"t\",\n \"Startup Cost\": 0.00,\n \"Total Cost\": 15.25,\n \"Plan Rows\": 1,\n \"Plan Width\": 4,\n \"Disabled\": false,\n \"Output\": [\"1\"],\n \"Filter\": \"((t.deleted_at IS NULL) AND (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 \"image\" as \"image\", \"organization_id\" as \"organizationId\" from \"products\" as t where \"id\" = $1 limit 1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25],["organizationId",23]],"rows":[["private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41","1"]]}}, {"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 \"image\" as \"image\", \"organization_id\" as \"organizationId\" from \"products\" as t where \"id\" = $1 limit 1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25],["organizationId",23]],"rows":[["private:1/664ea424-530e-4b67-b3b0-2abf752e0b63.jpg?name=photo.png&size=41","1"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "file fields > serve an app read the same bytes as a download from a store without its own links": { "file fields > serve an app read the same bytes as a download from a store without its own links#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/43c1aee0-7ba3-479f-b563-9c6bef0f4b44.jpg?name=photo.jpg&size=41","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/43c1aee0-7ba3-479f-b563-9c6bef0f4b44.jpg?name=photo.jpg&size=41",null,null,null,null,null]]}}, {"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 \"image\" as \"image\", \"organization_id\" as \"organizationId\" from \"products\" as t where \"id\" = $1 limit 1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25],["organizationId",23]],"rows":[["private:1/43c1aee0-7ba3-479f-b563-9c6bef0f4b44.jpg?name=photo.jpg&size=41","1"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "file fields > refuse a type the field does not take, a file too large, and values that are no ticket for this field and caller": { "file fields > refuse a type the field does not take, a file too large, and values that are no ticket for this field and caller#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]} ] }, "file fields > schedule the delete of a replaced or cleared file, and keep the current one": { "file fields > schedule the delete of a replaced or cleared file, and keep the current one#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png?name=a.png&size=70","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png?name=a.png&size=70",null,null,null,null,null]]}}, {"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png?name=a.png&size=70",null,null,null,null,null]]}}, {"sql":"update \"products\" as t set \"image\" = $1 where \"deleted_at\" is null and \"organization_id\" = $2 and \"id\" = $3 returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\"","params":["private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg?name=b.jpg&size=41","1","1"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg?name=b.jpg&size=41",null,null,null,null,null]]}}, {"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 \"image\" as \"image\", \"organization_id\" as \"organizationId\" from \"products\" as t where \"id\" = $1 limit 1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25],["organizationId",23]],"rows":[["private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg?name=b.jpg&size=41","1"]]}}, {"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg?name=b.jpg&size=41",null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png\",\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["uri",25]],"rows":[["private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg"]]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png\",\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"private:1/adefa3b3-0540-4d76-83f4-4411115446e9.png\",\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg?name=b.jpg&size=41",null,null,null,null,null]]}}, {"sql":"update \"products\" as t set \"image\" = $1 where \"deleted_at\" is null and \"organization_id\" = $2 and \"id\" = $3 returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\"","params":[null,"1","1"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike",null,null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"private:1/0cbb9ff7-d054-44b4-85fa-c3d5a42077d5.jpg\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}} ] }, "file fields > keep the files of a soft-deleted row, and schedule those of a deleted one": { "file fields > keep the files of a soft-deleted row, and schedule those of a deleted one#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png?name=a.png&size=70","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png?name=a.png&size=70",null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["uri",25]],"rows":[["private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png"]]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1 for update","params":["1","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png?name=a.png&size=70",null,null,null,null,null]]}}, {"sql":"update \"products\" 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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\"","params":["1","1"],"result":{"command":"UPDATE","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/db98d0a0-740f-4604-95de-5d4d7b9f8471.png?name=a.png&size=70",null,null,null,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)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"avatars\" (\"name\", \"picture\") values ($1, $2) returning *) select \"id\" as \"id\", \"name\" as \"name\", \"picture\" as \"picture\" from written as t","params":["me","public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png?name=me.png&size=70"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["name",25],["picture",25]],"rows":[["1","me","public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png?name=me.png&size=70"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["uri",25]],"rows":[["public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png"]]}}, {"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\", \"name\" as \"name\", \"picture\" as \"picture\" from \"avatars\" as t where \"id\" = $1 limit 1 for update","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["name",25],["picture",25]],"rows":[["1","me","public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png?name=me.png&size=70"]]}}, {"sql":"delete from \"avatars\" as t where \"id\" = $1 returning \"id\" as \"id\", \"name\" as \"name\", \"picture\" as \"picture\"","params":["1"],"result":{"command":"DELETE","rowCount":1,"columns":[["id",23],["name",25],["picture",25]],"rows":[["1","me","public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png?name=me.png&size=70"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"public:_/8224bfa8-7f11-4882-8be8-13f24de3f01f.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}} ] }, "file fields > delete uploads a rolled-back write or nobody attached once their ticket expired, and nothing referenced": { "file fields > delete uploads a rolled-back write or nobody attached once their ticket expired, and nothing referenced#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png?name=kept.png&size=70","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png?name=kept.png&size=70",null,null,null,null,null]]}}, {"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":"insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\"","params":["Bike","private:1/6fa6a933-cb7e-498b-a8ab-a346b9dcdfed.png?name=rolled-back.png&size=70","1"],"result":{"command":"INSERT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["2","1","Bike","private:1/6fa6a933-cb7e-498b-a8ab-a346b9dcdfed.png?name=rolled-back.png&size=70",null,null,null,null,null]]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select distinct split_part(\"image\", '?', 1) as uri from \"products\" where split_part(\"image\", '?', 1) = any($1)","params":["{\"private:1/64115e84-62de-450d-91c3-fca39cfba27c.png\",\"private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png\",\"private:1/6fa6a933-cb7e-498b-a8ab-a346b9dcdfed.png\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["uri",25]],"rows":[["private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png"]]}}, {"sql":"select distinct split_part(\"datasheet\", '?', 1) as uri from \"products\" where split_part(\"datasheet\", '?', 1) = any($1)","params":["{\"private:1/64115e84-62de-450d-91c3-fca39cfba27c.png\",\"private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png\",\"private:1/6fa6a933-cb7e-498b-a8ab-a346b9dcdfed.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}}, {"sql":"select distinct split_part(\"picture\", '?', 1) as uri from \"avatars\" where split_part(\"picture\", '?', 1) = any($1)","params":["{\"private:1/64115e84-62de-450d-91c3-fca39cfba27c.png\",\"private:1/82b1c625-44ca-4f90-a985-fb2d88ec6d02.png\",\"private:1/6fa6a933-cb7e-498b-a8ab-a346b9dcdfed.png\"}"],"result":{"command":"SELECT","rowCount":0,"columns":[["uri",25]],"rows":[]}} ] }, "file fields > never serve a file under another tenant, even when SQL put its URI in a row": { "file fields > never serve a file under another tenant, even when SQL put its URI in a row#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"image\", \"organization_id\") values ($1, $2, $3) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Bike","private:1/6a9d3c51-40a7-4398-9653-38187d2bb8fb.png?name=a.png&size=70","1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["1","1","Bike","private:1/6a9d3c51-40a7-4398-9653-38187d2bb8fb.png?name=a.png&size=70",null,null,null,null,null]]}}, {"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)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"products\" (\"name\", \"organization_id\") values ($1, $2) returning *) select \"id\" as \"id\", \"organization_id\" as \"organizationId\", \"name\" as \"name\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from written as t","params":["Other","2"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["2","2","Other",null,null,null,null,null,null]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"update products set image = $1 where id = $2","params":["private:1/6a9d3c51-40a7-4398-9653-38187d2bb8fb.png?name=a.png&size=70","2"],"result":{"command":"UPDATE","rowCount":1,"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\", \"image\" as \"image\", \"image_placeholder\" as \"imagePlaceholder\", \"image_width\" as \"imageWidth\", \"image_ratio\" as \"imageRatio\", \"datasheet\" as \"datasheet\", \"deleted_at\" as \"deletedAt\" from \"products\" as t where \"deleted_at\" is null and \"organization_id\" = $1 and \"id\" = $2 limit 1","params":["2","2"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["organizationId",23],["name",25],["image",25],["imagePlaceholder",25],["imageWidth",23],["imageRatio",1700],["datasheet",25],["deletedAt",1184]],"rows":[["2","2","Other","private:1/6a9d3c51-40a7-4398-9653-38187d2bb8fb.png?name=a.png&size=70",null,null,null,null,null]]}}, {"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 \"image\" as \"image\", \"organization_id\" as \"organizationId\" from \"products\" as t where \"id\" = $1 limit 1","params":["2"],"result":{"command":"SELECT","rowCount":1,"columns":[["image",25],["organizationId",23]],"rows":[["private:1/6a9d3c51-40a7-4398-9653-38187d2bb8fb.png?name=a.png&size=70","2"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "file fields > serve public files to anyone at a permanent address, and an unknown value as missing": { "file fields > serve public files to anyone at a permanent address, and an unknown value as missing#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]}, {"sql":"begin","result":{"command":"BEGIN","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 pg_logical_emit_message(true, $1, $2::text) is not null","params":["protobase_actor","{\"id\":\"tester\",\"roles\":[\"admin\"]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["?column?",16]],"rows":[["t"]]}}, {"sql":"with written as (insert into \"avatars\" (\"name\", \"picture\") values ($1, $2) returning *) select \"id\" as \"id\", \"name\" as \"name\", \"picture\" as \"picture\" from written as t","params":["me","public:_/a15e5fb7-5c3b-4fb3-8485-b43c03f42b32.png?name=me.png&size=70"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["name",25],["picture",25]],"rows":[["1","me","public:_/a15e5fb7-5c3b-4fb3-8485-b43c03f42b32.png?name=me.png&size=70"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"update avatars set picture = 'archive:old/me.png' where id = $1","params":["1"],"result":{"command":"UPDATE","rowCount":1,"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\", \"name\" as \"name\", \"picture\" as \"picture\" from \"avatars\" as t where \"id\" = $1 limit 1","params":["1"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",23],["name",25],["picture",25]],"rows":[["1","me","archive:old/me.png"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "file fields > run the cleanup over HTTP for an admin only": { "file fields > run the cleanup over HTTP for an admin only#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]} ] }, "file fields > describe the upload method, file objects and ticket bodies in the OpenAPI document": { "file fields > describe the upload method, file objects and ticket bodies in the OpenAPI document#0": [ {"sql":"\ncreate table products (\n id integer generated always as identity primary key, organization_id integer not null, name text not null,\n image text, image_placeholder text, image_width integer, image_ratio numeric(8,4), datasheet text, deleted_at timestamptz\n);\ncreate table avatars (id integer generated always as identity primary key, name text not null, picture text);\n","result":[{"command":"CREATE","rowCount":null,"columns":[],"rows":[]},{"command":"CREATE","rowCount":null,"columns":[],"rows":[]}]} ] } }