mirror of
https://github.com/tursodatabase/libsql.git
synced 2024-12-15 23:48:49 +00:00
dac888bbb7
* server: add query stats to hrana responses * update spec with stats * remove unused import * fix snapshot * more snapshots * add stats to legacy api * address comments
67 lines
1.3 KiB
Plaintext
67 lines
1.3 KiB
Plaintext
---
|
|
source: libsql-server/tests/hrana/batch.rs
|
|
expression: json
|
|
---
|
|
{
|
|
"results": [
|
|
{
|
|
"type": "ok",
|
|
"response": {
|
|
"type": "execute",
|
|
"result": {
|
|
"cols": [],
|
|
"rows": [],
|
|
"affected_row_count": 0,
|
|
"last_insert_rowid": null,
|
|
"replication_index": "1",
|
|
"rows_read": 1,
|
|
"rows_written": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ok",
|
|
"response": {
|
|
"type": "execute",
|
|
"result": {
|
|
"cols": [],
|
|
"rows": [],
|
|
"affected_row_count": 1,
|
|
"last_insert_rowid": "1",
|
|
"replication_index": "2",
|
|
"rows_read": 0,
|
|
"rows_written": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ok",
|
|
"response": {
|
|
"type": "execute",
|
|
"result": {
|
|
"cols": [
|
|
{
|
|
"name": "x",
|
|
"decltype": "INT"
|
|
}
|
|
],
|
|
"rows": [
|
|
[
|
|
{
|
|
"type": "integer",
|
|
"value": "42"
|
|
}
|
|
]
|
|
],
|
|
"affected_row_count": 0,
|
|
"last_insert_rowid": null,
|
|
"replication_index": "2",
|
|
"rows_read": 1,
|
|
"rows_written": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"base_url": null
|
|
}
|