Skip to content

real

Call Signature

real(): object

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

Returns

object

columnType

columnType: "real"

default

default: None<never>

nullable

nullable: false

primaryKey

primaryKey: false

schema

schema: Schema<number>

Call Signature

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

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

Type Parameters

TEncoded extends number

TDecoded = number

TNullable extends boolean = false

TDefault = typeof NoDefault

TPrimaryKey extends boolean = false

Parameters

args

default?

TDefault

nullable?

TNullable

primaryKey?

TPrimaryKey

schema?

Schema<TDecoded, TEncoded, never>

Returns

object

columnType

columnType: "real"

default

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

nullable

nullable: NoInfer<TNullable>

primaryKey

primaryKey: NoInfer<TPrimaryKey>

schema

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