Define an immutable, non-thenable query without creating a Knex client. Selectors and scopes run once during construction. Supply a connection or transaction when calling the definition, query(knex, ...args) or toSQL(knex, ...args).
Create an immutable, lazy query with an automatically inferred row schema.
Create an immutable table or polymorphic query. Raw output requires apply(..., { output }).
Define a reusable aliased SELECT. Supply Knex at invocation or query(knex, ...args).