mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-21 13:04:22 +02: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:
parent
77f1b1223c
commit
9a994637d9
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user