Insert Query Builder

Query builder for the SQL INSERT statement.

engine

Returns the database engine used by this query builder. This is used to execute the query directly from this builder. You can also set this property manually.
Copy
Copy

build()

Converts the class data to object.
Copy

query()

Convert the builder to a query object.

Usage

Copy

Example

Copy

returning()

Whether to return what was inserted

Usage

Copy

Example

Copy
Copy
Copy

then

Makes class awaitable. Should get the query and values and call the action.

Usage

Copy

Example

Copy

values()

Sets the values to be inserted. This can be a single object or an array of objects.

Usage

Copy

Example

Copy
Copy