conan-recipes/LevelDB/test_package/example.cpp

14 lines
249 B
C++
Raw Normal View History

2018-10-30 17:29:48 +01:00
#include "leveldb/db.h"
int main() {
leveldb::DB* db;
leveldb::Options options;
options.create_if_missing = true;
leveldb::Status status = leveldb::DB::Open(options, "/tmp/testdb", &db);
if(status.ok()){
return 0;
}
return -1;
}