Skip to content

schema package

Home > @direct-sqlite/schema

Function

Description

blob()

Represents a blob type in a table

boolean()

Represents a boolean(0 or 1) type in a table

createColumn(type)

Creates a table column

integer()

Represents an integer type in a table

json()

Represents a json(text) type in a table

real()

Represents a real type in a table

table(name, columns)

Creates a table schema

text()

Represents a text type in a table

timestamp()

Represents a timestamp(text) type in a table

Interface

Description

ColumnBuilder

Type Alias

Description

ColumnType

Core primitive SQL types

InferColumn

InferSchema