upscaledb
2.2.1
|
Go to the source code of this file.
Data Structures | |
struct | customer_t |
struct | order_t |
Macros | |
#define | MAX_DBS 3 |
#define | DBNAME_CUSTOMER 1 |
#define | DBNAME_ORDER 2 |
#define | DBNAME_C2O 3 /* C2O: Customer To Order */ |
#define | DBIDX_CUSTOMER 0 |
#define | DBIDX_ORDER 1 |
#define | DBIDX_C2O 2 |
#define | MAX_CUSTOMERS 4 |
#define | MAX_ORDERS 8 |
Functions | |
int | run_demo () |
int | main (int argc, char **argv) |
#define DBIDX_C2O 2 |
Definition at line 34 of file env3.cpp.
Referenced by run_demo().
#define DBIDX_CUSTOMER 0 |
Definition at line 32 of file env3.cpp.
Referenced by run_demo().
#define DBIDX_ORDER 1 |
Definition at line 33 of file env3.cpp.
Referenced by run_demo().
#define DBNAME_C2O 3 /* C2O: Customer To Order */ |
Definition at line 30 of file env3.cpp.
Referenced by run_demo().
#define DBNAME_CUSTOMER 1 |
Definition at line 28 of file env3.cpp.
Referenced by run_demo().
#define DBNAME_ORDER 2 |
Definition at line 29 of file env3.cpp.
Referenced by run_demo().
#define MAX_CUSTOMERS 4 |
Definition at line 36 of file env3.cpp.
Referenced by run_demo().
#define MAX_DBS 3 |
This sample does the same as env2, but uses the C++ API.
Definition at line 26 of file env3.cpp.
Referenced by run_demo().
#define MAX_ORDERS 8 |
Definition at line 37 of file env3.cpp.
Referenced by run_demo().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 278 of file env3.cpp.
References upscaledb::error::get_errno(), upscaledb::error::get_string(), and run_demo().
int run_demo | ( | ) |
Definition at line 55 of file env3.cpp.
References upscaledb::env::create(), upscaledb::env::create_db(), DBIDX_C2O, DBIDX_CUSTOMER, DBIDX_ORDER, DBNAME_C2O, DBNAME_CUSTOMER, DBNAME_ORDER, upscaledb::db::find(), upscaledb::cursor::find(), upscaledb::record::get_data(), upscaledb::error::get_errno(), upscaledb::error::get_string(), customer_t::id, upscaledb::db::insert(), MAX_CUSTOMERS, MAX_DBS, MAX_ORDERS, upscaledb::cursor::move(), upscaledb::cursor::move_next(), customer_t::name, upscaledb::key::set_data(), upscaledb::record::set_data(), upscaledb::key::set_size(), upscaledb::record::set_size(), UPS_CURSOR_NEXT, UPS_DUPLICATE, UPS_ENABLE_DUPLICATE_KEYS, UPS_KEY_NOT_FOUND, UPS_ONLY_DUPLICATES, UPS_PARAM_KEY_TYPE, UPS_PARAM_RECORD_SIZE, and UPS_TYPE_UINT32.
Referenced by main().