0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-16 07:58:46 +00:00
libsql/libsql-server/tests/hrana/snapshots/tests__hrana__batch__stats.snap
Lucio Franco dac888bbb7
server: add query stats to hrana responses (#1267)
* 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
2024-04-11 16:23:21 +00:00

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
}