UNPKG

@synotech/utils

Version:

a collection of utilities for internal use

20 lines (19 loc) 521 B
interface KnexConfig { client: 'pg'; connection: { user?: string; host?: string; database?: string; password?: string; port?: number; ssl?: any; }; } declare class PostgreSQL { private knex; constructor(config: KnexConfig); updateTable(objectId: string, tableName: string, data: Record<string, any>): Promise<boolean>; runAnalyzeOnTable(): Promise<void>; } declare const postgres: PostgreSQL; export { postgres, PostgreSQL };