Ticket #70683: db62_cxx_test.cpp

File db62_cxx_test.cpp, 283 bytes (added by gfiumara (Greg Fiumara), 2 weeks ago)
Line 
1#include <memory>
2#include <db_cxx.h>
3
4int main()
5{
6//      auto database = std::make_unique<Db::Db>(nullptr, 0);
7        Db *database = new Db(nullptr, 0);
8        database->open(nullptr, "/tmp/macports.db", nullptr, DB_BTREE,
9            DB_CREATE, 0);
10        database->close(0);
11        delete database;
12
13        return 0;
14}