CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
primary-keys.d.cts34 linesDownload Raw Back to sqlite-core
1import { entityKind } from "../entity.cjs";2import type { AnySQLiteColumn, SQLiteColumn } from "./columns/index.cjs";3import { SQLiteTable } from "./table.cjs";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