sqlite

Execute a batch of SQLite statements and return results for all of them

post/v1/sqlite/batch

Request body

mode'write' | 'read' | 'deferred'

Response

Array of results from the statements executed

columnsstring[] required

Names of columns.

Names of columns can be defined using the AS keyword in SQL:

SELECT author AS author, COUNT(*) AS count FROM books GROUP BY author
columnTypesstring[] required

Types of columns.

The types are currently shown for types declared in a SQL table. For column types of function calls, for example, an empty string is returned.

rowsAffectednumber required

Number of rows that were affected by an UPDATE, INSERT or DELETE operation.

This value is not specified for other SQL statements.

Changes

Changed in 2 of the 46 revisions of this API.221

  • eee85d2eafce121See the full diff
    • removed subschema #1 subschema #2 from the statements/items/anyOf[subschema #2: ParameterizedQuery]/args request property anyOf list

      request-property-any-of-removed

    • the statements/items/anyOf[subschema #1]/ request property's maxLength was set to 100000

      request-property-max-length-set

    • the statements/items/anyOf[subschema #2: ParameterizedQuery]/sql request property's maxLength was set to 100000

      request-property-max-length-set

    • added subschema #1 subschema #2 to the statements/items/anyOf[subschema #2: ParameterizedQuery]/args request property anyOf list

      request-property-any-of-added

    • the mode request property type/format changed from string/ to /

      request-property-type-changed