Initialize the Query.
Used for accessing columns in tables.
Used for accessing tables in the database.
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).
The type of model to insert, which is the constructor of a Table-decorated class.
An Entity instance to insert.
Used for accessing columns in tables.
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).
Used for accessing tables in the database.
Build the query.
An ExecutableQuery with the query string and any parameters usded in the query.
Execute the query.
A Promise that shall be resolved with the model. If the Executer.insert operation returns a generated insertId the model will be updated with that ID. If an error occurs during execution the promise shall be rejected with the unmodified error.
Create the SQL string.
A SQL representation of the INSERT query as a string.
Generated using TypeDoc
A Query class that represents an INSERT query. Instances of the class can be used to insert models in a database.