UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

22 lines 950 B
import type { QueryAnnotation } from "../abstract/QueryAnnotation"; import { QueryBase } from "../abstract/QueryBase"; import type { Table } from "../types"; import type { PgClient } from "./PgClient"; import { PgRunner } from "./PgRunner"; export declare class PgQueryIDGen<TTable extends Table> extends QueryBase<TTable, void, // input string, // output PgClient> { /** @ignore */ readonly RUNNER_CLASS: typeof PgRunnerIDGen; } declare class PgRunnerIDGen<TTable extends Table> extends PgRunner<TTable, void, string> { static readonly IS_WRITE = true; private readonly idAutoInsert; readonly op = "ID_GEN"; readonly maxBatchSize = 100; readonly default = "never_happens"; runSingle(_input: void, annotations: QueryAnnotation[]): Promise<string | undefined>; runBatch(inputs: Map<string, void>, annotations: QueryAnnotation[]): Promise<Map<string, string>>; } export {}; //# sourceMappingURL=PgQueryIDGen.d.ts.map