Causes the statement to return data namespaced by table. Each key in a row
object will be a table name, and each corresponding value will be a nested
object containing that table's columns. Columns from expressions or
subqueries are placed under the special $ namespace.
When expand mode is turned on, pluck and raw modes are turned off.
Requires the statement to have a .columns() method (available on real
statements but not minimal mocks).
Optionaltoggle: booleanEnable (true) or disable (false) expand mode. Defaults to true.
The same statement for chaining.
Causes the statement to return only the first column value of each row.
When plucking is turned on, raw and expand modes are turned off.
Optionaltoggle: booleanEnable (true) or disable (false) pluck mode. Defaults to true.
The same statement for chaining.
Causes the statement to return rows as arrays of values instead of objects.
When raw mode is turned on, pluck and expand modes are turned off.
Optionaltoggle: booleanEnable (true) or disable (false) raw mode. Defaults to true.
The same statement for chaining.
A statement enhanced with better-sqlite3-style
.pluck(),.raw(), and.expand()methods. These are mutually exclusive — enabling one disables the others.