-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should use PostgresJS driver type #66
Comments
Hey 👋 I'll need a reproduction repo. |
Good point, I will get back to you later! |
Hi! I run into the same issue when trying to setup Deno + Kysely + Postges. I can make a minimal reproduction if that helps. |
Install Deno, clone this repo and run https://github.com/Thaigun/kysely-postgres-repro I tried adding Edit: |
kysely-postgres-js/src/types.ts
Line 3 in 30fd344
this is using
Sql
from the npm postgres package: https://github.com/kysely-org/kysely-postgres-js/blob/main/package.json#L39it should instead use
Sql
from the postgresJS package: https://github.com/porsager/postgres/blob/master/types/index.d.ts#L660C19-L660C56Currently I am getting a type error because it tells me that my
postgresConnection = postgres(...)
is not allowed:You can see here that it is getting the TYPE from the NPMJS registry for POSTGRES, instead of using POSGRESJS driver
The text was updated successfully, but these errors were encountered: