Commit 0d68353f authored by 金凯强's avatar 金凯强 🎨

sqllite3 支持多进程访问

parent 70269312
......@@ -47,7 +47,7 @@ class DBDriver:
self.dbfile = dbfile
def cerateDB(self):
self.conn = sqlite3.connect(self.dbfile)
self.conn = sqlite3.connect(self.dbfile,check_same_thread=False)
# self.conn.isolation_level = None
for create_table_sql in create_table_sql_list:
self.conn.execute(create_table_sql) ####create new table
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment