Basic Functions For Templates
The most basic functions of the templating API can be used to access the result set and retrieve or set its columns and content.
Get the result columns of the given query as JSON serialized string.
/**
* @param {String} queryName name of the query
* @return {String} the stored columns JSON string of the given query
*/
PocketQuery.queryColumns(queryName)
Get the result of the given query as JSON serialized string.
/**
* @param {String} queryName name of the query
* @return {Array} the stored result JSON string of the given query
*/
PocketQuery.queryJson(queryName)
Get the result of the given query as a JavaScript array.
/**
* @return Query result as JavaScript array.
*/
PocketQuery.queryArray(queryName)