mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-04 02:04:12 -04:00
Allow ':memory:' as the database path for sqlite3
This commit is contained in:
parent
5fed042640
commit
3e85e52b3f
2 changed files with 11 additions and 2 deletions
|
@ -247,7 +247,13 @@ def setup():
|
|||
|
||||
logger.info("Database prepared in %s.", db_name)
|
||||
|
||||
hs.get_db_pool()
|
||||
db_pool = hs.get_db_pool()
|
||||
|
||||
if db_name == ":memory:"
|
||||
# Memory databases will need to be setup each time they are opened.
|
||||
reactor.callWhenRunning(
|
||||
hs.get_db_pool().runWithConnection, prepare_database
|
||||
)
|
||||
|
||||
if config.manhole:
|
||||
f = twisted.manhole.telnet.ShellFactory()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue