@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
12 lines (10 loc) • 380 B
text/typescript
import type { Client } from "./Client";
import type { QueryAnnotation } from "./QueryAnnotation";
/**
* A very lean interface for a Query. In practice each query is so different
* that this interface is the only common part of them all.
*/
export interface Query<TOutput> {
readonly IS_WRITE: boolean;
run(client: Client, annotation: QueryAnnotation): Promise<TOutput>;
}