Use read-only SQLite connection#165
Use read-only SQLite connection#165lmmentel merged 7 commits intolmmentel:masterfrom jan-janssen:master
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
mendeleevpackage 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.dbfile 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