diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-20 15:59:18 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-20 15:59:18 +0000 |
commit | dc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20 (patch) | |
tree | 1ca0cdc43de15f154d3049af20b276398168d311 /synapse/storage/profile.py | |
parent | Start removing Tables (diff) | |
download | synapse-dc0c989ef43ecfe3b4159e0cf16c50a7f38c1f20.tar.xz |
Give sensible names for '_simple_...' transactions
Diffstat (limited to 'synapse/storage/profile.py')
-rw-r--r-- | synapse/storage/profile.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py index 153c7ad027..a6e52cb248 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py @@ -21,6 +21,7 @@ class ProfileStore(SQLBaseStore): return self._simple_insert( table="profiles", values={"user_id": user_localpart}, + desc="create_profile", ) def get_profile_displayname(self, user_localpart): @@ -28,6 +29,7 @@ class ProfileStore(SQLBaseStore): table="profiles", keyvalues={"user_id": user_localpart}, retcol="displayname", + desc="get_profile_displayname", ) def set_profile_displayname(self, user_localpart, new_displayname): @@ -35,6 +37,7 @@ class ProfileStore(SQLBaseStore): table="profiles", keyvalues={"user_id": user_localpart}, updatevalues={"displayname": new_displayname}, + desc="set_profile_displayname", ) def get_profile_avatar_url(self, user_localpart): @@ -42,6 +45,7 @@ class ProfileStore(SQLBaseStore): table="profiles", keyvalues={"user_id": user_localpart}, retcol="avatar_url", + desc="get_profile_avatar_url", ) def set_profile_avatar_url(self, user_localpart, new_avatar_url): @@ -49,4 +53,5 @@ class ProfileStore(SQLBaseStore): table="profiles", keyvalues={"user_id": user_localpart}, updatevalues={"avatar_url": new_avatar_url}, + desc="set_profile_avatar_url", ) |