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

pgTable

function pgTable<TTableName extends string, TSchemaName extends string | undefined, TColumnsMap extends Record<string, AnyPgColumnBuilder>>(
name: TTableName,
columns: TColumnsMap,
extraConfig?: (self: BuildColumns<TTableName, TColumnsMap>) => PgTableExtraConfig,
): PgTableWithColumns<{
name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap>;
}
>
;
§
pgTable<TTableName extends string, TSchemaName extends string | undefined, TColumnsMap extends Record<string, AnyPgColumnBuilder>>(name: TTableName, columns: TColumnsMap, extraConfig?: (self: BuildColumns<TTableName, TColumnsMap>) => PgTableExtraConfig): PgTableWithColumns<{
name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap>;
}
>
[src]

§Type Parameters

§
TTableName extends string
[src]
§
TSchemaName extends string | undefined
[src]
§
TColumnsMap extends Record<string, AnyPgColumnBuilder>
[src]

§Parameters

§
name: TTableName
[src]
§
columns: TColumnsMap
[src]
§
extraConfig?: (self: BuildColumns<TTableName, TColumnsMap>) => PgTableExtraConfig optional
[src]

§Return Type

§
PgTableWithColumns<{
name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap>;
}
>
[src]