Skip to content

Commit

Permalink
allow multi-threaded sqlite3 operations (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero authored Nov 28, 2017
1 parent 4df08f0 commit 7a23cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CGAT/CSV2DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def run(infile, options, report_step=10000):

elif options.backend == "sqlite":
import sqlite3
dbhandle = sqlite3.connect(options.database_name)
dbhandle = sqlite3.connect(options.database_name, check_same_thread=False)
try:
os.chmod(options.database_name, 0o664)
except OSError as msg:
Expand Down

0 comments on commit 7a23cdc

Please sign in to comment.