UNPKG

@cocalc/database

Version:

CoCalc: code for working with our PostgreSQL database

9 lines (8 loc) 311 B
import { Client } from "@cocalc/database/pool"; import type { TableSchema } from "./types"; export declare function createIndexesQueries(schema: TableSchema): { name: string; query: string; unique: boolean; }[]; export declare function createIndexes(db: Client, schema: TableSchema): Promise<void>;