Closed DanielFGray closed 2 years ago
This issue is formatted like a bug report 😄
As a new feature this is a good idea though. I'll make this possible soon.
Once the next version is released, you can do this:
import {Â Pool } from 'pg'
const pool = new Pool(config)
const db = new Kysely<DB>({
dialect: new PostgresDialect(pool)
})
Released in 0.18.1
for example in my app I use
express-session
andconnect-pg-simple
, the latter requires passing a pg poolideally I would like to re-use that pool when creating a kysely instance rather than creating a new pool