Skip to content

wip(drizzle): driver-agnostic drizzle adapter - #54

Draft
aarmful wants to merge 1 commit into
getpaykit:mainfrom
aarmful:feat/drizzle-adapter-driver-agnostic
Draft

wip(drizzle): driver-agnostic drizzle adapter#54
aarmful wants to merge 1 commit into
getpaykit:mainfrom
aarmful:feat/drizzle-adapter-driver-agnostic

Conversation

@aarmful

@aarmful aarmful commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

closes #10

would love input from the author before this lands.

the drizzle adapter was locked to NodePgDatabase from drizzle-orm/node-postgres, meaning only users on the node-postgres driver could use it. users on postgres.js, neon, vercel postgres, etc. were out of luck.

switched to PgDatabase<PgQueryResultHKT, TSchema> from drizzle-orm/pg-core, the base type all drizzle pg drivers share. also dropped pg from peer deps and dev deps in @paykitjs/drizzle since the package no longer imports from any driver directly.

went with PgQueryResultHKT over any since it's the declared abstract base all driver HKTs extend. didn't go the better-auth route of { [key: string]: any } either, since paykit needs typed access to its own schema internally and that loose approach only makes sense when the adapter runs queries itself.

@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@aarmful is attempting to deploy a commit to the maxktz Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant