kysely icon indicating copy to clipboard operation
kysely copied to clipboard

TBD

Open igalklebanov opened this issue 5 months ago • 2 comments

igalklebanov avatar Jun 08 '25 23:06 igalklebanov

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2025 2:34am

vercel[bot] avatar Jun 08 '25 23:06 vercel[bot]

kysely_koa_example

npm i https://pkg.pr.new/kysely-org/kysely@1484

commit: d288da3

pkg-pr-new[bot] avatar Jun 08 '25 23:06 pkg-pr-new[bot]

went for a more centralized approach in the latest commit. haven't implement for streaming yet. hopefully it makes sense there too. we want as little non-database related stuff happening in the drivers.

igalklebanov avatar Jul 01 '25 13:07 igalklebanov

tests looking good for querying.. need to do streaming tests as well.

igalklebanov avatar Jul 05 '25 02:07 igalklebanov

Found out processID exists on Client but is undocumented. We can use it if exists instead of querying for it (slow).

Found out cancel exists on Client, but is undocumented. I attempted to use it, but realized there is no easy way to verify we're not canceling the wrong query after connecting.

Found out Client constructor exists on Pool but is undocumented. Also found out options (aka config) exists on Pool, and is exposed in @types/pg too. You can instantiate clients outside the pool's restrictions, with the same configuration. In case this doesn't exist, we now allow passing Client constructor to the dialect just in case it doesn't exist.

If Client exists (through Pool or through dialect config), use it. It doesn't register as a pool connection, so we won't have to wait for an idle connection. If Client doesn't exist, get a pool connection. Not ideal.

Either way, do a cancel query for the PID, if we're still on the original query.

igalklebanov avatar Jul 07 '25 01:07 igalklebanov

Got MySQL working as well in the following branch - https://github.com/kysely-org/kysely/pull/1505 It required killing the connection. kill query doesn't work as well as PostgreSQL's way, had to use kill connection.

igalklebanov avatar Jul 08 '25 02:07 igalklebanov

@igalklebanov is attempting to deploy a commit to the Kysely Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 04 '25 22:10 vercel[bot]