mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -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
|
@ -20,7 +20,10 @@ import os
|
|||
class DatabaseConfig(Config):
|
||||
def __init__(self, args):
|
||||
super(DatabaseConfig, self).__init__(args)
|
||||
self.database_path = self.abspath(args.database_path)
|
||||
if args.database_path == ":memory:":
|
||||
self.database_path = ":memory:"
|
||||
else:
|
||||
self.database_path = self.abspath(args.database_path)
|
||||
|
||||
@classmethod
|
||||
def add_arguments(cls, parser):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue