-
Notifications
You must be signed in to change notification settings - Fork 51
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
Awesome! #12
Comments
Thanks @kevinlang, there are plenty of outstanding issues right now that I am about to start throwing into the issue tracker. I still occasionally get the sqlite3 busy error, or sqlite database is locked when trying to migrate. And I totally also cloned your library to see the work you put in to it. |
Might also be worthwhile looking through the sqlite3 ruby gem and its associated ActiveRecord adapter/connector. I remember looking through those at the time of my initial attempt and it gave me some good insights. I also find looking at the go-sqlite3 issues to give some insight into common errors around sqlite3 itself (since I'm certainly no expert). They also seem to get similar locked errors here and there. It seems that there are a couple of possible solutions:
I also see an approach of looking at whether a statement is RW or not and doing some mutex around that to prevent it, though that seems ill advised. Some interesting links/discussions around the locked error: Best of luck :) |
Probably a good call on the |
Was just looking into reviving my ill-fated attempt at this once before,
xqlite3
that got nowhere due to the busy errors you mentioned in the README (and also because it was my first foray into Elixir programming, probably not the best thing to start with).You may want to post about it on the Elixir Forum as things get somewhat stable, as a decent SQLite3 ecto3 driver has been wanted for some time. Here is a recent thread, for example:
https://elixirforum.com/t/help-with-debugging-sqlites-busy-error-with-ecto3/33613/9
(edit: just realized one of the contributors was the one who started that thread, 😅 )
It would be awesome to one day see the ecto driver upstreamed into the ecto repo itself once things get stable, as the other drivers have been (postgrex, myxql, etc).
Cheers,
The text was updated successfully, but these errors were encountered: