Skip to content
Snippets Groups Projects
Commit fa21ba4d authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

new: Archive: Allow to create Archive in memory

parent e205b303
No related branches found
No related tags found
No related merge requests found
......@@ -162,10 +162,11 @@ class MessageExportRow(NamedTuple):
class MessageArchiveStorage(SqliteStorage):
def __init__(self):
def __init__(self, in_memory: bool = False):
path = None if in_memory else configpaths.get('LOG_DB')
SqliteStorage.__init__(self,
log,
configpaths.get('LOG_DB'),
path,
ARCHIVE_SQL_STATEMENT)
self._jid_ids: dict[JID, JidsTableRow] = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment