Skip to content

monolayer-pg / schema / Schema

Class: Schema<T, S>

Type Parameters

Type Parameter
T extends TableRecord
S extends string

Properties

PropertyModifierTypeDescription
_tablesprotectedT-
inferpublicTableInfer<T>Infers types to be used as the Kysely database schema type definition. Remarks Infers types for select, insert and update operations, taking into account the column data type, constraints, generated values, and default data values. TypeScript Types Each column has a TypeScript type for its select, insert, and update operations:
inferWithSchemaNamespacepublicTableInferWithSchema<T, S>Infers types with a schema namespace to be used as the Kysely database schema type definition. Remarks Infers types for select, insert and update operations, taking into account the database schema, column data type, constraints, generated values, and default data values. TypeScript Types Each column has a TypeScript type for its select, insert, and update operations:

Accessors

tables

Get Signature

get tables(): T

Returns

T