We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b96110 commit 9989417Copy full SHA for 9989417
wikdict_web/base.py
@@ -124,7 +124,11 @@ def db_query(
124
conn = get_conn(db_name, path, attach_dbs, write)
125
cur = conn.cursor()
126
for name, db in (attach_dbs or {}).items():
127
- cur.execute("ATTACH DATABASE '{}' AS {}".format(path_for_db(db, path), name))
+ cur.execute(
128
+ "ATTACH DATABASE 'file:{}?immutable=1' AS {}".format(
129
+ path_for_db(db, path), name
130
+ )
131
132
if explain:
133
condensed_stmt = " ".join(stmt.split())
134
print("\nPlan for {}".format(repr(condensed_stmt[:160])))
0 commit comments