-
Notifications
You must be signed in to change notification settings - Fork 168
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
Replace sqlite3 driver with ncruces version #567
base: master
Are you sure you want to change the base?
Conversation
Hi! Do you intend to use both drivers together, or port to my driver? Using two different instances/versions of SQLite in the same process is a really bad idea. Due to the way POSIX locking works it can easily lead to data corruption, missed updates, etc. |
Hey, @ncruces! Nice surprise that you found this! Thanks for your work on your driver.
I'm trying to port entirely over to your driver. The issue I'm running into is that I only need a SQLite-specific API in one spot. Everywhere else, I'd like to continue using the generic What would you recommend for this scenario? |
Good that you're not trying to mix drivers. That's a little known SQLite pitfall. I would recommend you use the You can bind an The reader will be copied to the blob. The |
@ncruces - Thanks so much! I'll give it a shot. |
No problem. Heads up, I'll be improving the extension on the next release: ncruces/go-sqlite3@356dd56 Writing the blob with |
Resolves #566
Current status (2024-09-10): Code works locally, fails in e2e and some unit tests