summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-11-08 16:08:02 +0000
committerGitHub <noreply@github.com>2021-11-08 16:08:02 +0000
commit4ee71b96377c39a2b9d060c6aafbce62fb16ccc6 (patch)
tree71a0905f4118953137fed5551393f93585092d56 /synapse/storage/database.py
parentFix typo in comment from #11255. (#11276) (diff)
downloadsynapse-4ee71b96377c39a2b9d060c6aafbce62fb16ccc6.tar.xz
Add some background update admin APIs (#11263)
Fixes #11259
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r--synapse/storage/database.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index 5c71e27518..d4cab69ebf 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -446,6 +446,10 @@ class DatabasePool:
                 self._check_safe_to_upsert,
             )
 
+    def name(self) -> str:
+        "Return the name of this database"
+        return self._database_config.name
+
     def is_running(self) -> bool:
         """Is the database pool currently running"""
         return self._db_pool.running