UNPKG

@cocalc/database

Version:

CoCalc: code for working with our PostgreSQL database

6 lines (5 loc) 326 B
import { Client } from "@cocalc/database/pool"; import type { TableSchema } from "./types"; export declare function primaryKeys(table: string | TableSchema): string[]; export declare function primaryKey(table: string | TableSchema): string; export declare function createTable(db: Client, schema: TableSchema): Promise<void>;