Interface whose fields are table names defining tables.
Name of the table.
Tuple of the names of the table's key columns.
Defaults to []
, indicating no key columns. Supports up to 4 columns.
Columns to return from the table on insert
queries that return columns. ['*']
returns all columns; []
returns
none. May specify aliases. Defaults to KeyColumns
.
Columns to return from the table on update
queries that return columns. ['*']
returns all columns; []
returns
none and is the default. May specify aliases.
Constructs an object providing transforms for entire table rows.
Readonly
keyTransforms the returns of an insert query into the the object returned to the caller, merging the returned values into the inserted object.
Transforms inserted objects into inserted rows, removing the columns that are keys having falsy values.
Transforms the returns of an update query into the the object returned to the caller, merging the returned values into the updating object.
Generated using TypeDoc
Transforms for a table mapper that only receives and returns entire table rows, given by type
Selectable<DB[TB]>
.