Skip to content

ColDefFn

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

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

TColumnType extends FieldColumnType

(): object

object

autoIncrement: false

columnType: TColumnType

default: Option.None<never>

nullable: false

primaryKey: false

schema: Schema.Schema<DefaultEncodedForColumnType<TColumnType>>

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

TEncoded extends string | number | Uint8Array<ArrayBuffer>

TDecoded = DefaultEncodedForColumnType<TColumnType>

TNullable extends boolean = false

TDefault = typeof NoDefault

TPrimaryKey extends boolean = false

TAutoIncrement extends boolean = false

TAutoIncrement

TDefault

TNullable

TPrimaryKey

Schema.Schema<TDecoded, TEncoded>

object

autoIncrement: NoInfer<TAutoIncrement>

columnType: TColumnType

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

nullable: NoInfer<TNullable>

primaryKey: NoInfer<TPrimaryKey>

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