Execute
Execute
post/v1/sqlite/execute
Execute a single SQLite statement and return results
Body Parameters
statementunion
string OR object
Simple SQL statement to run in SQLite
Returns
columnsarray of stringcolumnTypesarray of stringrowsarray of array of unknownrowsAffectednumberlastInsertRowidunionResultSet
curl https://api.val.town/v1/sqlite/execute \
-H 'Content-Type: application/json' \
-d '{
"statement": "SELECT 1;"
}'200 Example
{
"columns": [
"string"
],
"columnTypes": [
"string"
],
"rows": [
[
{}
]
],
"rowsAffected": 0,
"lastInsertRowid": "string"
}