Skip to content

Commit

Permalink
add retry locks to execute_str
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Aug 21, 2024
1 parent 77947c8 commit 99c21f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datachain/data_storage/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def executemany(
return cursor.executemany(self.compile(query).string, params)
return self.db.executemany(self.compile(query).string, params)

@retry_sqlite_locks
def execute_str(self, sql: str, parameters=None) -> sqlite3.Cursor:
if parameters is None:
return self.db.execute(sql)
Expand Down

0 comments on commit 99c21f8

Please sign in to comment.