aegida-console / lib / db / types.ts
types.ts
Raw
export type QueryResult<Row> = {
  rows: Row[];
};

export interface Queryable {
  query<Row = Record<string, unknown>>(
    text: string,
    values?: readonly unknown[],
  ): Promise<QueryResult<Row>>;
}