Skip to content

getColumnDefForSchema

const getColumnDefForSchema: (schema, propertySignature?, forceNullable?) => Any

Defined in: packages/@livestore/common/dist/schema/state/sqlite/column-def.d.ts:10

Maps a schema to a SQLite column definition, respecting column annotations.

Note: When used with schema-based table definitions, optional fields (| undefined) are transformed to nullable fields (| null) to match SQLite’s NULL semantics. Fields with both null and undefined will emit a warning as this is a lossy conversion.

Schema.Schema.AnyNoContext

SchemaAST.PropertySignature

boolean

Any