CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
utils.d.cts31 linesDownload Raw Back to sqlite-core
1import { SQL } from "../sql/sql.cjs";2import { Subquery } from "../subquery.cjs";3import type { Check } from "./checks.cjs";4import type { ForeignKey } from "./foreign-keys.cjs";5import type { Index } from "./indexes.cjs";6import type { PrimaryKey } from "./primary-keys.cjs";7import { SQLiteTable } from "./table.cjs";8import { type UniqueConstraint } from "./unique-constraint.cjs";9import type { SQLiteViewBase } from "./view-base.cjs";10import type { SQLiteView } from "./view.cjs";11export declare function getTableConfig<TTable extends SQLiteTable>(table: TTable): {12    columns: import("./index.ts").SQLiteColumn<any, {}, {}>[];13    indexes: Index[];14    foreignKeys: ForeignKey[];15    checks: Check[];16    primaryKeys: PrimaryKey[];17    uniqueConstraints: UniqueConstraint[];18    name: string;19};20export declare function extractUsedTable(table: SQLiteTable | Subquery | SQLiteViewBase | SQL): string[];21export type OnConflict = 'rollback' | 'abort' | 'fail' | 'ignore' | 'replace';22export declare function getViewConfig<TName extends string = string, TExisting extends boolean = boolean>(view: SQLiteView<TName, TExisting>): {23    name: TName;24    originalName: TName;25    schema: string | undefined;26    selectedFields: import("../sql/sql.ts").ColumnsSelection;27    isExisting: TExisting;28    query: TExisting extends true ? undefined : SQL<unknown>;29    isAlias: boolean;30};31