Batch
Batch
post/v1/sqlite/batch
Execute a batch of SQLite statements and return results for all of them
Body Parameters
statementsarray of union
modeenum
optional
"write" OR "read" OR "deferred"
curl https://api.val.town/v1/sqlite/batch \
-H 'Content-Type: application/json' \
-d '{
"statements": [
"SELECT 1;"
]
}'200 Example
[
{
"columns": [
"string"
],
"columnTypes": [
"string"
],
"rows": [
[
{}
]
],
"rowsAffected": 0,
"lastInsertRowid": "string"
}
]