Skip to content

ColDefFn

ColDefFn<TColumnType> = {(): object; <TEncoded, TDecoded, TNullable, TDefault, TPrimaryKey>(args): object; }

Defined in: packages/@livestore/common/dist/schema/state/sqlite/db-schema/dsl/field-defs.d.ts:24

TColumnType extends FieldColumnType

(): object

object

columnType: TColumnType

default: Option.None<never>

nullable: false

primaryKey: false

schema: Schema<DefaultEncodedForColumnType<TColumnType>>

<TEncoded, TDecoded, TNullable, TDefault, TPrimaryKey>(args): object

TEncoded extends string | number | Uint8Array<ArrayBufferLike>

TDecoded = DefaultEncodedForColumnType<TColumnType>

TNullable extends boolean = false

TDefault = typeof NoDefault

TPrimaryKey extends boolean = false

TDefault

TNullable

TPrimaryKey

Schema<TDecoded, TEncoded>

object

columnType: TColumnType

default: TDefault extends NoDefault ? Option.None<never> : Option.Some<NoInfer<TDefault>>

nullable: NoInfer<TNullable>

primaryKey: NoInfer<TPrimaryKey>

schema: TNullable extends true ? Schema<NoInfer<TDecoded> | null, NoInfer<TEncoded> | null> : Schema<NoInfer<TDecoded>, NoInfer<TEncoded>>