Closed simonw closed 2 years ago
I'm going to check this just on the /-/import-socrata
page itself.
Need to do this first:
This inspired me to file this issue:
Weirdly I was getting a sqlite3.OperationalError: unable to open database file
error on this:
supported_databases = [
db
for db in datasette.databases.values()
if db.is_mutable
and db.name != "_internal"
and await db.execute_fn(
lambda conn: sqlite_utils.Database(conn).journal_mode == "wal"
)
]
But switching it to using await db.execute_write_fn
fixed that error.
Maybe testing journal_mode
on a database connection that was opened in read-only mode can cause errors.
Originally posted by @simonw in https://github.com/simonw/datasette-socrata/issues/5#issuecomment-1150588585