upscaledb
2.2.1
|
Go to the source code of this file.
Macros | |
#define | LOOP 10 |
Functions | |
int | run_demo () |
int | main (int argc, char **argv) |
#define LOOP 10 |
A simple example, which creates a database, inserts some values, looks them up and erases them. Uses the C++ api.
Definition at line 26 of file db6.cpp.
Referenced by run_demo().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 128 of file db6.cpp.
References upscaledb::error::get_errno(), upscaledb::error::get_string(), and run_demo().
int run_demo | ( | ) |
Definition at line 29 of file db6.cpp.
References upscaledb::db::close(), upscaledb::env::close(), upscaledb::env::create(), upscaledb::env::create_db(), upscaledb::db::erase(), upscaledb::db::find(), upscaledb::record::get_data(), upscaledb::error::get_errno(), upscaledb::error::get_string(), upscaledb::db::insert(), LOOP, upscaledb::env::open(), upscaledb::env::open_db(), upscaledb::key::set_data(), upscaledb::record::set_data(), upscaledb::key::set_size(), upscaledb::record::set_size(), UPS_KEY_NOT_FOUND, UPS_PARAM_KEY_TYPE, UPS_PARAM_RECORD_SIZE, and UPS_TYPE_UINT32.
Referenced by main().