summary refs log tree commit diff
path: root/synapse/storage/engines/sqlite.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-02-27 10:29:24 +0000
committerRichard van der Hoff <richard@matrix.org>2019-02-27 10:29:24 +0000
commit67acd1aa1b931291a011b95488a1fb059fc8f644 (patch)
tree77b543bc3b83c79313e75fdd593f493810f9c6a6 /synapse/storage/engines/sqlite.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentLimit cache invalidation replication line length (#4748) (diff)
downloadsynapse-67acd1aa1b931291a011b95488a1fb059fc8f644.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/storage/engines/sqlite.py')
-rw-r--r--synapse/storage/engines/sqlite.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/storage/engines/sqlite.py b/synapse/storage/engines/sqlite.py

index 059ab81055..1bcd5b99a4 100644 --- a/synapse/storage/engines/sqlite.py +++ b/synapse/storage/engines/sqlite.py
@@ -70,6 +70,15 @@ class Sqlite3Engine(object): self._current_state_group_id += 1 return self._current_state_group_id + @property + def server_version(self): + """Gets a string giving the server version. For example: '3.22.0' + + Returns: + string + """ + return "%i.%i.%i" % self.module.sqlite_version_info + # Following functions taken from: https://github.com/coleifer/peewee