blob: 0f244cd00be50a0119bdda0e13d31c575d27e782 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
export { defineDbIntegration } from './core/utils.js';
import { tableSchema } from './core/schemas.js';
import type { ColumnsConfig, TableConfig } from './core/types.js';
import { type Table, asDrizzleTable as internal_asDrizzleTable } from './runtime/index.js';
export function asDrizzleTable<
TableName extends string = string,
TColumns extends ColumnsConfig = ColumnsConfig,
>(name: TableName, tableConfig: TableConfig<TColumns>) {
return internal_asDrizzleTable(name, tableSchema.parse(tableConfig)) as Table<
TableName,
TColumns
>;
}
|