monolayer-pg / schema / Schema
Class: Schema<T, S>
Type Parameters
Type Parameter |
---|
T extends TableRecord |
S extends string |
Properties
Property | Modifier | Type | Description |
---|---|---|---|
_tables | protected | T | - |
infer | public | TableInfer <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: |
inferWithSchemaNamespace | public | TableInferWithSchema <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