14 lines
249 B
C++
14 lines
249 B
C++
|
#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;
|
||
|
}
|
||
|
|