ColumnBuilder
abstractabstract class ColumnBuilder<THKT extends ColumnBuilderHKTBase, T extends ColumnBuilderBaseConfig, TRuntimeConfig extends object = {}, TTypeConfig extends object = {}> { }
constructor(name: T["name"]);
_: {
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;notNull(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}>>;primaryKey(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
notNull: true;
}>>;§Properties
§
config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig
[src]§
_: {
[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§Methods
§
$type<TType extends T["data"]>(): ColumnBuilderKind<THKT, Update<T, {
[src]data: TType;
}>>§
default(value: T["data"] | SQL): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
[src]hasDefault: true;
}>>§
notNull(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
[src]notNull: true;
}>>§
primaryKey(): ColumnBuilderKind<THKT, UpdateCBConfig<T, {
[src]notNull: true;
}>>