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

pysqlite3-binary does not like setting synchronous = NORMAL #96

Closed
cldellow opened this issue Feb 26, 2023 · 1 comment
Closed

pysqlite3-binary does not like setting synchronous = NORMAL #96

cldellow opened this issue Feb 26, 2023 · 1 comment

Comments

@cldellow
Copy link
Owner

Code that works with vanilla sqlite3 does not work with pysqlite3-binary:

  File "/home/cldellow/src/project/db/venv/lib/python3.8/site-packages/datasette_ui_extras/dux_command.py", line 18, in prepare_connection
    conn.execute('PRAGMA synchronous = NORMAL')
pysqlite3.dbapi2.OperationalError: Safety level may not be changed inside a transaction
@cldellow
Copy link
Owner Author

coleifer/pysqlite3#41 has some discussion, including a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant