kysely-org / kysely-postgres-js

Kysely dialect for PostgreSQL using the Postgres.js client.
MIT License
58 stars 3 forks source link

Passing in sql instance #6

Closed marbemac closed 8 months ago

marbemac commented 8 months ago

Any chance this dialect could allow for optionally passing in a sql instance, rather than having the dialect always create it?

The use case here is for when other libraries also need the sql instance (in this case, Lucia Auth https://lucia-auth.com/guidebook/kysely/#postgresql).

igalklebanov commented 8 months ago

Hey 👋

Good idea!

Released in v2.

marbemac commented 8 months ago

Thank you!