Start implementing ApplicationServiceTransactionStore

This commit is contained in:
Kegan Dougal 2015-03-06 17:35:14 +00:00
parent 34ce2ca62f
commit 406d32f8b5

View file

@ -374,7 +374,11 @@ class ApplicationServiceTransactionStore(SQLBaseStore):
Returns:
A Deferred which resolves to True if the state was set successfully.
"""
pass
return self._simple_upsert(
"application_services_state",
dict(as_id=service.id),
dict(state=state)
)
def create_appservice_txn(self, service, events):
"""Atomically creates a new transaction for this application service