Initialize the query using a From instance.
An Escaper matching the database type (e.g. MySQLEscaper or MSSQLEscaper). Used when escaping column names in compiled conditions.
An Executer instance that matches the database type (e.g. MySQLExecuter).
A From instance which holds the base table, all joined-in tables, and the where clause.
An OrderBy instance which is optionally used to order the query results.
An Escaper matching the database type (e.g. MySQLEscaper or MSSQLEscaper). Used when escaping column names in compiled conditions.
An Executer instance that matches the database type (e.g. MySQLExecuter).
A From instance which holds the base table, all joined-in tables, and the where clause.
An OrderBy instance which is optionally used to order the query results.
Build the query.
The string-representation of the query to execute along with query parameters.
Count the number of records, optionally on a column.
An optional column to count on. If not provided, then COUNT(*) is used.
Execute the query and return an array of results of type T.
A promise that shall be resolved with the normalized query results of type T. If an error occurs while executing the query, the returned promise shall be rejected with the unmodified error.
Order by one or more columns.
A list of fully-qualified properties in the form <table-alias>.<property>, or an array of OrderByType with the fully-qualified property and direction.
Get the SQL as a string.
Generated using TypeDoc
Represents a count query (SELECT COUNT(*)).