-
Notifications
You must be signed in to change notification settings - Fork 67
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
database/sql driver #30
Comments
BTW, I personally think that not having a
Check the last question on the mattn driver's FAQ: https://github.com/mattn/go-sqlite3 If you start using their driver normally, you'll immediately start getting problems with locked databases. They suggest that you use their custom connection string to enable shared cache mode, and then reduce the connection pool to only 1 connection. That's the suggested way of using it apparently. I honestly don't understand how anyone is using sqlite through |
A I do believe connection pooling is possible with sqlite, though not in the default way One of the big problems with that other driver that I wanted to address was lack of support for https://www.sqlite.org/unlock_notify.html, which I believe is important for using the shared cache effectively. |
I'm becoming increasingly interested in implementing this feature and may start taking a crack at it in the next few weeks in my spare time. |
I think this sqlite package provides enough interesting features that it is worth building a database/sql driver on top of it.
In particular it has better multi-threaded support than the existing drivers, and soon will have different build options by selecting sub-packages. (See the multipkg branch.)
It should be easy enough to put a driver in a package named something like sqlite/driver.
The text was updated successfully, but these errors were encountered: