Skip to main content

Module insert

Module insert 

Source
Expand description

INSERT builder states and clause methods.

InsertBuilder is the builder returned by QueryBuilder::insert. Its state parameter only allows steps in SQL order: rows (VALUES or a SELECT), then ON CONFLICT, then RETURNING.

Structs§

InsertColumnsSet
INSERT builder state after .columns(...), waiting for its SELECT source. Columns is the type-level list of target columns.
InsertDoUpdateSet
Marker for the state after DO UPDATE SET (before optional WHERE).
InsertInitial
Marker for the initial state of InsertBuilder.
InsertOnConflictSet
Marker for the state after ON CONFLICT is set.
InsertReturningSet
Marker for the state after RETURNING clause is added.
InsertValuesSet
Marker for the state after VALUES are set.

Type Aliases§

InsertBuilder
A PostgreSQL INSERT being built: a QueryBuilder in one of the Insert* states.
OnConflictBuilder
The ON CONFLICT target of an INSERT, waiting for its action.