Search:
GitHub Login
Preferences
My Notifications
Tickets
Wiki
GitHub
Timeline
Roadmap
Ticket Reports
Search
Context Navigation
Back to Ticket #70683
Ticket #70683
: db62_cxx_test.cpp
File db62_cxx_test.cpp,
283 bytes
(added by
gfiumara (Greg Fiumara)
,
2 months ago
)
Line
1
#include
<memory>
2
#include
<db_cxx.h>
3
4
int
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
}
Download in other formats:
Original Format