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<{
[src]name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap>;
}>§Type Parameters
§
TColumnsMap extends Record<string, AnyPgColumnBuilder>
[src]§Parameters
§
extraConfig?: (self: BuildColumns<TTableName, TColumnsMap>) => PgTableExtraConfig optional
[src]§Return Type
§
PgTableWithColumns<{
[src]name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap>;
}>