summary refs log tree commit diff
path: root/synapse/storage/appservice.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-06 17:16:47 +0000
committerKegan Dougal <kegan@matrix.org>2015-03-06 17:16:47 +0000
commit01c099d9ef2b3891643845031c917fd0dc41d954 (patch)
tree7416e1d8676d7f53175af7c737aa4c13223b2f5f /synapse/storage/appservice.py
parentUpper bound the backoff. (diff)
downloadsynapse-01c099d9ef2b3891643845031c917fd0dc41d954.tar.xz
Add appservice txns sql schema
Diffstat (limited to 'synapse/storage/appservice.py')
-rw-r--r--synapse/storage/appservice.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index 4447c8a2e1..eec8fbd592 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -385,6 +385,8 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
         Returns:
             AppServiceTransaction: A new transaction.
         """
+        # TODO: work out txn id (highest txn id for this service += 1)
+        # TODO: Within same db transaction, Insert new txn into txn table
         pass
 
     def complete_appservice_txn(self, txn_id, service):
@@ -398,6 +400,8 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
             A Deferred which resolves to True if this transaction was completed
             successfully.
         """
+        # TODO: Set current txn_id for AS to 'txn_id'
+        # TODO: Delete txn contents
         pass
 
     def get_oldest_unsent_txn(self, service):
@@ -410,4 +414,6 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
             A Deferred which resolves to an AppServiceTransaction or
             None.
         """
+        # TODO: Monotonically increasing txn ids, so just select the smallest
+        # one in the txns table (we delete them when they are sent)
         pass