OptionalcountOptionalfiltersOptionallimitOptionalmaxThe most rows a request may ask for (a page size or limit, "all" included).
OptionaloffsetRows to skip and to return (DataTables' start and length); limit null or -1 returns them all.
OptionalordersOptionalpageOr a 1-based page and its size (see pageParams); strings from a query string work.
OptionalpageOptionalparamsOptionalquery…or a function that builds it from filters and orders (the rows' query
gets the orders; the counts get null, so they need no ORDER BY).
OptionalrowsHow each row is decoded: a rowSpec() or a Standard Schema.
OptionalsqlThe rows to list: a SELECT with its params by name (with its ORDER BY)…
OptionaltotalWith query: the filters total counts with (the ones that always
apply, such as the user's own records), so filtered counts the
request's filters and total the rows before them, as DataTables'
recordsTotal/recordsFiltered. Without it total equals filtered.
'wrap'(default) counts withSELECT COUNT(*) FROM (…);'none'does not count.