summary refs log tree commit diff
path: root/synapse/storage/engines/sqlite.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-11-15 13:38:57 -0500
committerPatrick Cloke <patrickc@matrix.org>2023-11-15 15:11:51 -0500
commit9622bda16329a1f10daf3f57a75f5444483e0447 (patch)
treeda95a97808b41e16283e9d13f374b5b933798674 /synapse/storage/engines/sqlite.py
parentAdd an Admin API to temporarily grant the ability to update an existing cross... (diff)
downloadsynapse-clokep/statement-timeout.tar.xz
Abstract logic for setting the statement timeout. github/clokep/statement-timeout clokep/statement-timeout
Diffstat (limited to 'synapse/storage/engines/sqlite.py')
-rw-r--r--synapse/storage/engines/sqlite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/engines/sqlite.py b/synapse/storage/engines/sqlite.py

index 802069e1e1..64d2a72ed5 100644 --- a/synapse/storage/engines/sqlite.py +++ b/synapse/storage/engines/sqlite.py
@@ -143,6 +143,12 @@ class Sqlite3Engine(BaseDatabaseEngine[sqlite3.Connection, sqlite3.Cursor]): # All transactions are SERIALIZABLE by default in sqlite pass + def attempt_to_set_statement_timeout( + self, cursor: sqlite3.Cursor, statement_timeout: int, for_transaction: bool + ) -> None: + # Not supported. + pass + @staticmethod def executescript(cursor: sqlite3.Cursor, script: str) -> None: """Execute a chunk of SQL containing multiple semicolon-delimited statements.