-
Couldn't load subscription status.
- Fork 350
feat(core): ground work for query cancellation + PostgreSQL implementation. #1484
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
base: next
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
commit: |
a3d18c9 to
627be4a
Compare
cbd6804 to
5e75c61
Compare
5e75c61 to
10d619b
Compare
d51f3a3 to
98dd794
Compare
9f663a3 to
521e2e3
Compare
6f22429 to
ee130c9
Compare
ee130c9 to
a4db0d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The names were conflicting with the general QueryOptions this PR introduces.
a4db0d3 to
0525eea
Compare
0525eea to
4b3dc8f
Compare
f13491f to
90d6c71
Compare
f3c3650 to
9adaf87
Compare
4b3dc8f to
98e862b
Compare
|
@igalklebanov is attempting to deploy a commit to the Kysely Team Team on Vercel. A member of the Team first needs to authorize it. |
e143120 to
f852fa6
Compare
f852fa6 to
0ea15e5
Compare
364747d to
3ecc532
Compare
apply executable @ select. test suite prep. ?? best bench results. ... update qb. merge qb. insert qb. delete qb. kysely. raw builder. fix regression in takeFirst. more core. abort. ... ... ... ... ... ... ... ... ... executeQuery. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
3ecc532 to
70da7fc
Compare
cab8d72 to
285a816
Compare
Hey 👋
part of #783
This PR sets the foundations for dialects to implement query cancellation.
An
executable<O>interface is created and all relevant builders implement it.All
executeandstreamfunction accept an options object that might includesignal.This
signalis passed down to the executor, and handled there.The connection receives a hint at query time that it might need to prepare itself for cancelation - e.g. in PostgreSQL you need to make a request to get the
pidof the connection.The connection has a
cancelQuerymethod that, in dialects that support it, cancel the query on the database side.Verifying this works with PostgreSQL.