-
Notifications
You must be signed in to change notification settings - Fork 43
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
Use read-only SQLite connection #165
Conversation
Thanks @jan-janssen & @pkruzikova 🙌 In general the changes make sense, however I would rather have a flag that defaults to read-only mode for most cases but still allows to grab the There seem to be some small linting errors, that should be easy to fix. |
@lmmentel I added the flag to
In addition I fixed the linting errors. |
Thanks 👍 |
Perfect, thanks a lot - @lmmentel Can you create a new release? |
Yes 💯 |
When the
mendeleev
package is located on a Network File System (NFS) Sqlalchemy fails with an OperationalError.This is a known limitation of SQLite:
As the data in the
elements.db
file never changes, the solution is to connect to the SQLite database using read-only mode. This is implemented in this pull request.Originally reported by @pkruzikova