UNPKG

drizzle-orm

Version:

Drizzle ORM package for SQL databases

16 lines (15 loc) 655 B
import { entityKind } from "../entity.js"; import { SQL, type SQLWrapper } from "../sql/sql.js"; import type { gelSequence } from "./sequence.js"; import { type GelTableFn } from "./table.js"; export declare class GelSchema<TName extends string = string> implements SQLWrapper { readonly schemaName: TName; static readonly [entityKind]: string; constructor(schemaName: TName); table: GelTableFn<TName>; sequence: typeof gelSequence; getSQL(): SQL; shouldOmitSQLParens(): boolean; } export declare function isGelSchema(obj: unknown): obj is GelSchema; export declare function gelSchema<T extends string>(name: T): GelSchema<T>;