AK-21/Graphite-Industrial-Intelligence
0
1import { entityKind } from "../entity.js";2import type { AnySQLiteColumn, SQLiteColumn } from "./columns/index.js";3import { SQLiteTable } from "./table.js";4export declare function primaryKey<TTableName extends string, TColumn extends AnySQLiteColumn<{5 tableName: TTableName;6}>, TColumns extends AnySQLiteColumn<{7 tableName: TTableName;8}>[]>(config: {9 name?: string;10 columns: [TColumn, ...TColumns];11}): PrimaryKeyBuilder;12/**13 * @deprecated: Please use primaryKey({ columns: [] }) instead of this function14 * @param columns15 */16export declare function primaryKey<TTableName extends string, TColumns extends AnySQLiteColumn<{17 tableName: TTableName;18}>[]>(...columns: TColumns): PrimaryKeyBuilder;19export declare class PrimaryKeyBuilder {20 static readonly [entityKind]: string;21 _: {22 brand: 'SQLitePrimaryKeyBuilder';23 };24 constructor(columns: SQLiteColumn[], name?: string);25}26export declare class PrimaryKey {27 readonly table: SQLiteTable;28 static readonly [entityKind]: string;29 readonly columns: SQLiteColumn[];30 readonly name?: string;31 constructor(table: SQLiteTable, columns: SQLiteColumn[], name?: string);32 getName(): string;33}34 