Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
/* This is free and unencumbered software released into the public domain. */ |
| 2 |
|
| 3 |
#include <cstdio> /* for std::*printf() */ |
| 4 |
#include <cstdlib> /* for EXIT_FAILURE, EXIT_SUCCESS */ |
| 5 |
#include <lmdb++.h> |
| 6 |
|
| 7 |
int main() { |
| 8 |
try { |
| 9 |
/* Create the LMDB environment: */ |
| 10 |
auto env = lmdb::env::create(); |
| 11 |
|
| 12 |
/* Open the LMDB environment: */ |
| 13 |
env.open("/tmp"); |
| 14 |
|
| 15 |
/* Begin the LMDB transaction: */ |
| 16 |
auto txn = lmdb::txn::begin(env); |
| 17 |
|
| 18 |
// TODO |
| 19 |
|
| 20 |
return EXIT_SUCCESS; |
| 21 |
} |
| 22 |
catch (const lmdb::error& error) { |
| 23 |
std::fprintf(stderr, "Failed with error: %s\n", error.what()); |
| 24 |
return EXIT_FAILURE; |
| 25 |
} |
| 26 |
} |