summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-02-27 10:21:49 +0000
committerGitHub <noreply@github.com>2019-02-27 10:21:49 +0000
commitf191be822b265b50339e17b2d95125f43dc700b3 (patch)
treedc8948e39cc603fa82deddf12b47a4b756910ca3 /synapse/storage/_base.py
parentFix check-newsfragment script (#4750) (diff)
downloadsynapse-f191be822b265b50339e17b2d95125f43dc700b3.tar.xz
Add database version to phonehome stats. (#4753)
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 5a80eef211..190be34fb1 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -1596,6 +1596,14 @@ class SQLBaseStore(object):
 
         return cls.cursor_to_dict(txn)
 
+    @property
+    def database_engine_name(self):
+        return self.database_engine.module.__name__
+
+    def get_server_version(self):
+        """Returns a string describing the server version number"""
+        return self.database_engine.server_version
+
 
 class _RollbackButIsFineException(Exception):
     """ This exception is used to rollback a transaction without implying