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 a new RegisterBusyHandler method to SQLiteConn to allow access to sqlite3_busy_handler() #1278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

polyscone
Copy link

@polyscone polyscone commented Oct 1, 2024

This PR just adds a new RegisterBusyHandler method to the SQLiteConn type to allow use of the sqlite3_busy_handler() function.

I tried to follow the same style as the other Register* methods which use the void* user data args as a way to pass a handle to a Go callback function to a trampoline function defined in C.

I've also updated the _examples folder with a new example file.

Fixes #290

@polyscone
Copy link
Author

Is there any chance I could get someone to take a look at this? @mattn , or maybe @rittneje ?

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.

Implement support for busy handler
1 participant