feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour committed 2026-08-12 00:25:26 +08:00
1 parent 4bf92dcfeb
commit c699c32461
2817 files changed
+779642 -653

No files matched your search

@@ -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>;