mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Comments
This commit is contained in:
parent
756d4942f5
commit
8863624f78
3 changed files with 16 additions and 5 deletions
|
@ -31,11 +31,17 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class SQLBaseStore(object):
|
||||
"""Base class for data stores that holds helper functions.
|
||||
|
||||
Note that multiple instances of this class will exist as there will be one
|
||||
per data store (and not one per physical database).
|
||||
"""
|
||||
|
||||
def __init__(self, db_conn, hs):
|
||||
self.hs = hs
|
||||
self._clock = hs.get_clock()
|
||||
self.database_engine = hs.database_engine
|
||||
self.db = Database(hs)
|
||||
self.db = Database(hs) # In future this will be passed in
|
||||
self.rand = random.SystemRandom()
|
||||
|
||||
def _invalidate_state_caches(self, room_id, members_changed):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue