-
Notifications
You must be signed in to change notification settings - Fork 339
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
Open
igalklebanov
wants to merge
7
commits into
kysely-org:next
Choose a base branch
from
igalklebanov:cancelation-p1
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
f647d54
to
942f202
Compare
942f202
to
3e5269c
Compare
91b22dc
to
dc89b9e
Compare
3e5269c
to
6f22429
Compare
6f22429
to
ee130c9
Compare
ee130c9
to
a4db0d3
Compare
igalklebanov
commented
Jul 28, 2025
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
Co-authored-by: Eric So <56284867+ericsodev@users.noreply.github.com> Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
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. ... ... ... ... ... ... ... ... ... ... ... ... ...
0525eea
to
4b3dc8f
Compare
f13491f
to
90d6c71
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api
Related to library's API
breaking change
Includes breaking changes
built-in dialect
Related to a built-in dialect
enhancement
New feature or request
internal
postgres
Related to PostgreSQL
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
execute
andstream
function accept an options object that might includeabortSignal
.This
abortSignal
is 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
pid
of the connection.The connection has a
cancelQuery
method that, in dialects that support it, cancel the query on the database side.Verifying this works with PostgreSQL.