smc-hub
Version:
CoCalc: Backend webserver component
19 lines (18 loc) • 428 B
TypeScript
import { PostgreSQL, QueryWhere } from "./types";
interface QueryOpts {
db: PostgreSQL;
query?: string;
select?: string[];
set?: string;
jsonb_set?: object;
jsonb_merge?: object;
table?: string;
where?: QueryWhere;
one?: boolean;
order_by?: string;
limit?: number;
params?: any[];
timeout_s?: number;
}
export declare function query(opts: QueryOpts): Promise<any>;
export {};