summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-06-30 15:57:29 +0100
committerGitHub <noreply@github.com>2016-06-30 15:57:29 +0100
commitab71589c0beb392333ec41c887d08a6c577121dd (patch)
tree199bef20aca0ca594d234ff61c16ab44e46be91f /synapse/storage/_base.py
parentMerge pull request #902 from matrix-org/erikj/expire_media (diff)
parentFeature: Add deactivate account admin API (diff)
downloadsynapse-ab71589c0beb392333ec41c887d08a6c577121dd.tar.xz
Merge pull request #903 from matrix-org/erikj/deactivate_user
Feature: Add deactivate account admin API
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py

index 32c6677d47..d766a30299 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py
@@ -807,6 +807,11 @@ class SQLBaseStore(object): if txn.rowcount > 1: raise StoreError(500, "more than one row matched") + def _simple_delete(self, table, keyvalues, desc): + return self.runInteraction( + desc, self._simple_delete_txn, table, keyvalues + ) + @staticmethod def _simple_delete_txn(txn, table, keyvalues): sql = "DELETE FROM %s WHERE %s" % (