feat(db): change sqlite_orm header dependency

Former-commit-id: d682b364b1b27a2af27f0246460bb9bbb6370fd0
pull/191/head
Xu Peng 2019-04-26 15:37:47 +08:00
parent a21ad0b743
commit 1d9946ff87
2 changed files with 3 additions and 6 deletions

View File

@ -5,7 +5,7 @@
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <chrono> #include <chrono>
#include <fstream> #include <fstream>
#include <sqlite_orm/sqlite_orm.h> #include <sqlite_orm.h>
#include <easylogging++.h> #include <easylogging++.h>
#include "DBMetaImpl.h" #include "DBMetaImpl.h"
#include "IDGenerator.h" #include "IDGenerator.h"
@ -88,6 +88,7 @@ Status DBMetaImpl::initialize() {
ConnectorPtr->sync_schema(); ConnectorPtr->sync_schema();
ConnectorPtr->open_forever(); // thread safe option ConnectorPtr->open_forever(); // thread safe option
ConnectorPtr->pragma.journal_mode(journal_mode::WAL); // WAL => write ahead log
cleanup(); cleanup();

View File

@ -9,7 +9,7 @@
#include <string> #include <string>
#include <memory> #include <memory>
#include <sqlite_orm/sqlite_orm.h> #include <sqlite_orm.h>
namespace zilliz { namespace zilliz {
@ -62,7 +62,3 @@ class Connection {
} }
} }
} }