Skip to content
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

EBAS reader: open sqlite3 db in read-only mode only #1232

Closed
jgriesfeller opened this issue Jun 28, 2024 · 0 comments · Fixed by #1233
Closed

EBAS reader: open sqlite3 db in read-only mode only #1232

jgriesfeller opened this issue Jun 28, 2024 · 0 comments · Fixed by #1233
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@jgriesfeller
Copy link
Member

For some reason the sqlite database used to find the files to read is opened in write mode:

with sqlite3.connect(self.database) as con:

with sqlite3.connect(self.database) as con:

This is not necessary. Just open the DB in readonly mode

@jgriesfeller jgriesfeller added this to the m2024-07 milestone Jun 28, 2024
@jgriesfeller jgriesfeller self-assigned this Jun 28, 2024
@lewisblake lewisblake added the bug 🐛 Something isn't working label Jun 28, 2024
@jgriesfeller jgriesfeller linked a pull request Jun 28, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants