GitHub

RecordInsertHelper

API reference for RecordInsertHelper.

Rows to insert: (columns) VALUES (...), (...) from the first row's keys, then RETURNING when returning gave one.

Attributes

AttributeTypeDescription
valuetuple[Mapping[str, object], ...]
returning_identifierReturning = field(default=None, kw_only=True)

Functions

__init__

__init__(value, *, returning_identifier=None) -> None
ParameterTypeDescription
valuetuple[Mapping[str, object], ...]
returning_identifierReturning = None

returning

returning(sql) -> Self
ParameterTypeDescription
sqlLiteralString | Identifier | Fragment

Returns Self

def returning(self, sql: LiteralString | Identifier | Fragment) -> Self:
    return replace(self, returning_identifier=_returning(sql))