mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
* chore: collab cache for S3 * chore: adjust disk cache api to accomodate s3 * chore: move postgres dependent ops to disk cache * chore: replace blob inserts from pg to s3 * chore: delete blob and collab exist now use s3 * chore: fix clippy erorrs * chore: post rebase fixes * chore: fix clippy warnings * chore: fix imports * chore: make snapshots work over S3 * chore: remove dead code * chore: use compressed snapshots * chore: add zstd compression * chore: introduce collab size threshold to keep smaller collabs in postgres * chore: remove collabs from S3 if they were put to postgres * chore: update tests
66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT * FROM af_collab_snapshot\n WHERE sid = $1 AND oid = $2 AND workspace_id = $3 AND deleted_at IS NULL;\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "sid",
|
|
"type_info": "Int8"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "oid",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "blob",
|
|
"type_info": "Bytea"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "len",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "encrypt",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "deleted_at",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "workspace_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int8",
|
|
"Text",
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "21f66ca39be3377f8c5e4b218123e266fe8e03260ecd1891c644820892dda2b2"
|
|
}
|