Skip to content
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

Add support for Database.interrupt() #155

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Add support for Database.interrupt() #155

merged 1 commit into from
Dec 18, 2024

Conversation

penberg
Copy link
Contributor

@penberg penberg commented Dec 17, 2024

Refs #123

/**
* Interrupts the database connection.
*/
interrupt() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this function actually useful in the sync world (since there's no way to call it really)? unless... users can define UDF to get back into JS? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zen0wu If your application uses Web Workers, you could call this, no? Not saying it's very common way to write apps, but in theory useful?

@penberg penberg merged commit e65dae0 into main Dec 18, 2024
9 checks passed
@penberg penberg deleted the interrupt branch December 18, 2024 15:37
@@ -19,6 +19,7 @@ pub fn throw_libsql_error<'a, C: Context<'a>, T>(cx: &mut C, err: libsql::Error)
cx.throw(err)?
}
_ => {
todo!("err = {:?}", err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this left here on purpose @penberg ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants