mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
chore: cargo sqlx fix
This commit is contained in:
parent
602e22b4ea
commit
a7d078414c
2 changed files with 43 additions and 2 deletions
41
.sqlx/query-ed9bce7f35c4dd8d41427bc56db67adf175044a8d31149b3745ceb8f9b3c82fa.json
generated
Normal file
41
.sqlx/query-ed9bce7f35c4dd8d41427bc56db67adf175044a8d31149b3745ceb8f9b3c82fa.json
generated
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "\n SELECT oid, snapshot, snapshot_version, created_at\n FROM af_snapshot_meta\n WHERE oid = $1 AND partition_key = $2\n ORDER BY created_at DESC",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "oid",
|
||||
"type_info": "Text"
|
||||
},
|
||||
{
|
||||
"ordinal": 1,
|
||||
"name": "snapshot",
|
||||
"type_info": "Bytea"
|
||||
},
|
||||
{
|
||||
"ordinal": 2,
|
||||
"name": "snapshot_version",
|
||||
"type_info": "Int4"
|
||||
},
|
||||
{
|
||||
"ordinal": 3,
|
||||
"name": "created_at",
|
||||
"type_info": "Int8"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Text",
|
||||
"Int4"
|
||||
]
|
||||
},
|
||||
"nullable": [
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "ed9bce7f35c4dd8d41427bc56db67adf175044a8d31149b3745ceb8f9b3c82fa"
|
||||
}
|
|
@ -104,8 +104,8 @@ pub async fn get_snapshot_meta_list<'a>(
|
|||
let rows: Vec<_> = sqlx::query_as!(
|
||||
AFSnapshotMetaPbRow,
|
||||
r#"
|
||||
SELECT oid, snapshot, snapshot_version, created_at
|
||||
FROM af_snapshot_meta
|
||||
SELECT oid, snapshot, snapshot_version, created_at
|
||||
FROM af_snapshot_meta
|
||||
WHERE oid = $1 AND partition_key = $2
|
||||
ORDER BY created_at DESC"#,
|
||||
oid.to_string(),
|
||||
|
|
Loading…
Add table
Reference in a new issue