Indicates if property names are prefixed with alias names during property replacement. By default this is enabled, however we need this because aliases are not supported in UPDATE and DELETE queries, but user can use them in WHERE expressions.
All aliases (including main alias) used in the query.
Indicates if query result cache is enabled or not.
Time in milliseconds in which cache will expire. If not set then global caching time will be used.
Cache id. Used to identifier your cache queries.
Indicates if listeners and subscribers must be called before and after query execution.
Indicates if alias, table names and column names will be ecaped by driver, or not.
todo: rename to isQuotingDisabled, also think if it should be named "escaping"
Indicates if virtual columns should be included in entity result.
todo: what to do with it? is it properly used? what about persistence?
Extra where condition appended to the end of original where conditions with AND keyword. Original condition will be wrapped into brackets.
Extra returning columns to be added to the returning statement if driver supports it.
GROUP BY queries.
HAVING queries.
List of columns where data should be inserted. Used in INSERT query.
JOIN queries.
LIMIT query.
Locking mode.
Current version of the entity, used for locking.
Main alias is a main selection object selected by QueryBuilder.
Extra parameters. Used in InsertQueryBuilder to avoid default parameters mechanizm and execute high performance insertions.
Entity (target) which relations will be updated.
OFFSET query.
Optional on conflict statement used in insertion query in postgres.
Options that define QueryBuilder behaviour.
ORDER BY queries.
Parameters used to be escaped in final query.
If QueryBuilder was created in a subquery mode then its parent QueryBuilder (who created subquery) will be stored here.
Indicates if QueryBuilder used to select entities and not a raw results.
Represents query type. QueryBuilder is able to build SELECT, UPDATE and DELETE queries.
Relation count queries.
RelationId queries.
Property path of relation to work with. Used in relational query builder.
Optional returning (or output) clause for insert, update or delete queries.
Data needs to be SELECT-ed.
Number of rows to skip of result using pagination.
Indicates if query builder creates a subquery.
Number of rows to take using pagination.
Indicates if entity must be updated after insertion / updation. This may produce extra query or use RETURNING / OUTPUT statement (depend on database).
Indicates if query must be wrapped into transaction.
If update query was used, it needs "update set" - properties which will be updated by this query. If insert query was used, it needs "insert set" - values that needs to be inserted.
Used if user wants to update or delete a specific entities.
WHERE queries.
Get all ORDER BY queries - if order by is specified by user then it uses them, otherwise it uses default entity order by if it was set.
Gets relation metadata of the relation this query builder works with.
todo: add proper exceptions
Copies all properties of the current QueryExpressionMap into a new one. Useful when QueryBuilder needs to create a copy of itself.
Creates a new alias and adds it to the current expression map.
Finds alias with the given name. If alias was not found it throw an exception.
Generated using TypeDoc
Contains all properties of the QueryBuilder that needs to be build a final query.