Skip to content

Widen AnyPgDatabase schema generic to accept standard Drizzle instances#8

Merged
pdlug merged 1 commit into
mainfrom
fix/drizzle-postgres-generics
Feb 19, 2026
Merged

Widen AnyPgDatabase schema generic to accept standard Drizzle instances#8
pdlug merged 1 commit into
mainfrom
fix/drizzle-postgres-generics

Conversation

@pdlug
Copy link
Copy Markdown
Contributor

@pdlug pdlug commented Feb 19, 2026

  • Widens AnyPgDatabase type alias from PgDatabase<PgQueryResultHKT> (which defaults schema to Record<string, never>) to PgDatabase<PgQueryResultHKT, Record<string, unknown>>
    • Fixes TS2345 type error when passing a standard drizzle() instance (without explicit schema) to createPostgresBackend
    • Aligns Postgres type with the existing AnySqliteDatabase pattern in sqlite-execution.ts

@pdlug pdlug force-pushed the fix/drizzle-postgres-generics branch from a080a34 to 4732792 Compare February 19, 2026 23:10
@pdlug pdlug merged commit 83bd86a into main Feb 19, 2026
8 checks passed
@pdlug pdlug deleted the fix/drizzle-postgres-generics branch February 19, 2026 23:13
@github-actions github-actions Bot mentioned this pull request Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant