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

Column

abstract
abstract class Column<THKT extends ColumnHKTBase, T extends ColumnBaseConfig, TRuntimeConfig extends object = {}, TTypeConfig extends object = {}> implements DriverValueMapper<T["data"], T["driverParam"]> {
constructor(table: Table, config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig);
protected config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig;
_: {
hkt: THKT;
brand: "Column";
config: T;
tableName: T["tableName"];
name: T["name"];
data: T["data"];
driverParam: T["driverParam"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
}
& TTypeConfig;
readonly default: T["data"] | SQL | undefined;
readonly hasDefault: boolean;
readonly name: string;
readonly notNull: boolean;
readonly primary: boolean;
readonly table: Table;
 
abstract getSQLType(): string;
mapFromDriverValue(value: T["driverParam"]): T["data"];
mapToDriverValue(value: T["data"]): T["driverParam"];
}

§Type Parameters

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

§Implements

§
DriverValueMapper<T["data"], T["driverParam"]>
[src]

§Constructors

§
new Column(table: Table, config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig)
[src]

§Properties

§
config: ColumnBuilderRuntimeConfig<T["data"]> & TRuntimeConfig
[src]
§
_: {
hkt: THKT;
brand: "Column";
config: T;
tableName: T["tableName"];
name: T["name"];
data: T["data"];
driverParam: T["driverParam"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
}
& TTypeConfig
[src]
§
default: T["data"] | SQL | undefined
[src]
§
hasDefault: boolean
[src]
§
name: string
[src]
§
notNull: boolean
[src]
§
primary: boolean
[src]

§Methods

§
getSQLType(): string abstract
[src]
§
mapFromDriverValue(value: T["driverParam"]): T["data"]
[src]
§
mapToDriverValue(value: T["data"]): T["driverParam"]
[src]