Name | Description | Type | Use |
---|---|---|---|
query | An SQL query that relies on the SQLite syntax. NoteThe following restrictions apply only when the
|
string |
required |
parameters | An array of parameters, in the order of their appearance in the query. The types and formatting of the parameters must match the following rules:
The length of the array must match the number of the questionmark character occurrences in the query. If no parameters are used, an empty array must be passed. |
object |
required |
targetTableName | A name of the target datapage. Used to obtain column types when formatting the result. If null or undefined, a raw SQL result is returned. | string |
optional |
onSuccess | A callback function, called when the query succeeds. It passes a
The order of returned rows is maintained only if the query includes the "ORDER BY" clause. |
function |
required |
onFailure | A callback function, called when the operation fails. Passes an error code, as defined in the Constants table in the Client Store article, and an error message. | function |
required |