AppFlowy-Cloud/.sqlx/query-f78c2c56568dcee0b93e759ee517fb87d6d115a02856a756d481ea4c863c0327.json
Nathan.fooo 28e0e74fd1
feat: Implement history(1) (#466)
* chore: update collab commit

* chore: collab history test

* chore: collab history test

* chore: impl redis stream

* chore: impl redis stream test

* chore: impl migration

* chore: implement history sql

* chore: add test

* chore: add test

* chore: fix test

* chore: update log and test

* chore: add xtask

* chore: clippy

* chore: impl api

* chore: add missing sqlx files

* chore: fix test

* chore: fix test
2024-04-15 09:18:19 +08:00

54 lines
1.2 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT snapshot_id, oid, doc_state, doc_state_version, deps_snapshot_id, created_at\n FROM af_snapshot_state\n WHERE oid = $1 AND partition_key = $2 AND created_at >= $3\n ORDER BY created_at ASC\n LIMIT 1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "snapshot_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "oid",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "doc_state",
"type_info": "Bytea"
},
{
"ordinal": 3,
"name": "doc_state_version",
"type_info": "Int4"
},
{
"ordinal": 4,
"name": "deps_snapshot_id",
"type_info": "Uuid"
},
{
"ordinal": 5,
"name": "created_at",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Text",
"Int4",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
true,
false
]
},
"hash": "f78c2c56568dcee0b93e759ee517fb87d6d115a02856a756d481ea4c863c0327"
}