Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ColumnBuilder

abstract
abstract class ColumnBuilder<THKT extends ColumnBuilderHKTBase, T extends ColumnBuilderBaseConfig, TRuntimeConfig extends object = {}, TTypeConfig extends object = {}> {
constructor(name: T["name"]);
protected config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig;
_: {
brand: "ColumnBuilder";
config: T;
hkt: THKT;
columnHKT: THKT["_columnHKT"];
name: T["name"];
data: T["data"];
driverParam: T["driverParam"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
}
& TTypeConfig;
 
$type<TType extends T["data"]>(): ColumnBuilderKind<THKT, Update<T, {
data: TType;
}
>
>
;
default(value: T["data"] | SQL): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
hasDefault: true;
}
>
>
;
notNull(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}
>
>
;
primaryKey(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}
>
>
;
}

§Type Parameters

§
TRuntimeConfig extends object = {}
[src]
§
TTypeConfig extends object = {}
[src]

§Constructors

§
new ColumnBuilder(name: T["name"])
[src]

§Properties

§
config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig
[src]
§
_: {
brand: "ColumnBuilder";
config: T;
hkt: THKT;
columnHKT: THKT["_columnHKT"];
name: T["name"];
data: T["data"];
driverParam: T["driverParam"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
}
& TTypeConfig
[src]

§Methods

§
$type<TType extends T["data"]>(): ColumnBuilderKind<THKT, Update<T, {
data: TType;
}
>
>
[src]
§
default(value: T["data"] | SQL): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
hasDefault: true;
}
>
>
[src]
§
notNull(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}
>
>
[src]
§
primaryKey(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}
>
>
[src]