queryWithArgs

open fun queryWithArgs(querySpec: QuerySpec, pageIndex: Int, whereArgs: Array<String>): JSONArray

Run a query given by its query spec with optional "where args" (i.e. bind args) Provided bind args will be substituted to the ? found in the query NB: Bind args are only supported for smart queries Returns results from selected page

Parameters

querySpec

the query to run

pageIndex

the page to return

whereArgs

the bind args (optional - only supported for smart queries)

Throws