mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 12:48:39 -04:00
Add database config class (#6513)
This encapsulates config for a given database and is the way to get new connections.
This commit is contained in:
parent
91ccfe9f37
commit
2284eb3a53
19 changed files with 286 additions and 208 deletions
|
@ -40,7 +40,7 @@ class SQLBaseStore(object):
|
|||
def __init__(self, database: Database, db_conn, hs):
|
||||
self.hs = hs
|
||||
self._clock = hs.get_clock()
|
||||
self.database_engine = hs.database_engine
|
||||
self.database_engine = database.engine
|
||||
self.db = database
|
||||
self.rand = random.SystemRandom()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue