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:
Peter 2016-04-05 09:54:21 -04:00
parent 77f1b1223c
commit 9a994637d9
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class KmipEngine(object):
self._cryptography_engine = engine.CryptographyEngine()
self._data_store = sqlalchemy.create_engine(
'sqlite:///:memory:',
'sqlite:////tmp/pykmip.database',
echo=False
)
sqltypes.Base.metadata.create_all(self._data_store)