Batch
client.sqlite.batch(SqliteBatchParams { statements, mode } body, RequestOptionsoptions?): SqliteBatchResponse { columns, columnTypes, rows, 2 more }
/v1/sqlite/batch
Execute a batch of SQLite statements and return results for all of them
Parameters
Returns
import ValTown from "npm:@valtown/sdk";
const client = new ValTown({
bearerToken: 'My Bearer Token',
});
const resultSets = await client.sqlite.batch({ statements: ['SELECT 1;'], mode: 'read' });
console.log(resultSets);
[
{
"columns": [
"string"
],
"columnTypes": [
"string"
],
"rows": [
[
{}
]
],
"rowsAffected": 0,
"lastInsertRowid": "string"
}
]Returns Examples
[
{
"columns": [
"string"
],
"columnTypes": [
"string"
],
"rows": [
[
{}
]
],
"rowsAffected": 0,
"lastInsertRowid": "string"
}
]