mirror of
https://github.com/openkmip/pykmip
synced 2025-12-19 09:43:47 +00:00
Fixing bug with in-memory SQLite storage
This change swaps out the in-memory SQLite database for file-based data storage. SQLAlchemy support for in-memory SQLite storage does not work across threads. The new storage scheme stores all PyKMIP server data in /tmp.
This commit is contained in:
@@ -84,7 +84,7 @@ class KmipEngine(object):
|
|||||||
self._cryptography_engine = engine.CryptographyEngine()
|
self._cryptography_engine = engine.CryptographyEngine()
|
||||||
|
|
||||||
self._data_store = sqlalchemy.create_engine(
|
self._data_store = sqlalchemy.create_engine(
|
||||||
'sqlite:///:memory:',
|
'sqlite:////tmp/pykmip.database',
|
||||||
echo=False
|
echo=False
|
||||||
)
|
)
|
||||||
sqltypes.Base.metadata.create_all(self._data_store)
|
sqltypes.Base.metadata.create_all(self._data_store)
|
||||||
|
|||||||
Reference in New Issue
Block a user