Compiles the aggregate function part of a SELECT query.
Compiles a simple WHERE clause.
Compiles a WHERE clause comparing two columns.
Compiles the SELECT columns
part of a SELECT query, unless
an aggregate function was specified.
Compiles all components of a normal SELECT query. This can be overridden by subclasses to reorder this or to add/remove components.
Compiles the set of WHERE conditions in the specified query. Used for both JOIN and WHERE compiling.
Compiles a full DELETE query for all rows matching the builder's where clauses.
Compiles the FROM table
part of a SELECT query.
Compiles the GROUP BY clauses of the query.
Compiles a full INSERT query for the specified values. This accepts either a model
or a keyed database value object. This assumes that every element in the values
array has the same structure, and that it is not an empty array.
Compiles all JOIN conditions of the query.
Compiles the LIMIT part of the query.
Compiles a nested WHERE clause.
Compiles a WHERE clause checking for (NOT) NULL.
Compile the ORDER BY clauses of the query.
Compiles a raw SQL where clause.
Compiles a full SELECT query.
Compiles a full UPDATE query for the specified partial. This does not diff-check and simply assumes that everything specified needs to be updated.
Compiles all WHERE clauses of the query.
Escapes the specified column name. This is intended to be overridden by potential subclasses.
Escapes the specified table name. This is intended to be overridden by potential subclasses.
Generated using TypeDoc
This class is responsible for "compiling" QueryBuilders into the raw SQL that will be executed by the database engine. It returns both SQL and bound values, so we can safely let the database engine handle escaping of arguments.