mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:34:51 -04:00
Add appservice txns sql schema
This commit is contained in:
parent
64345b7559
commit
01c099d9ef
3 changed files with 38 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue