feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,28 @@
export interface PostgresQueryResult<
TRow extends Record<string, unknown> = Record<string, unknown>,
> {
readonly rows: readonly TRow[];
readonly rowCount?: number | null;
}
export interface PostgresQueryable {
query<TRow extends Record<string, unknown> = Record<string, unknown>>(
text: string,
values?: readonly unknown[],
): Promise<PostgresQueryResult<TRow>>;
}
export interface PostgresClient extends PostgresQueryable {
release(): void;
}
export interface PostgresPool extends PostgresQueryable {
connect(): Promise<PostgresClient>;
}
export interface PostgresDatabaseResource {
readonly pool: PostgresPool;
close(): Promise<void>;
}
export type OpenPostgresDatabase = () => Promise<PostgresDatabaseResource>;