upscaledb
2.2.1
|
Go to the source code of this file.
Data Structures | |
struct | customer_t |
struct | order_t |
Macros | |
#define | MAX_DBS 2 |
#define | DBNAME_CUSTOMER 1 |
#define | DBNAME_ORDER 2 |
#define | MAX_CUSTOMERS 4 |
#define | MAX_ORDERS 8 |
Functions | |
void | error (const char *foo, ups_status_t st) |
int | main (int argc, char **argv) |
void error | ( | const char * | foo, |
ups_status_t | st | ||
) |
A simple example, which creates a database environment with several databases.
Definition at line 29 of file env1.c.
References ups_strerror().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 58 of file env1.c.
References order_t::assignee, order_t::customer_id, ups_record_t::data, ups_key_t::data, DBNAME_CUSTOMER, DBNAME_ORDER, error(), customer_t::id, order_t::id, MAX_CUSTOMERS, MAX_DBS, MAX_ORDERS, customer_t::name, ups_record_t::size, ups_key_t::size, UPS_AUTO_CLEANUP, ups_cursor_close(), ups_cursor_create(), UPS_CURSOR_FIRST, ups_cursor_move(), UPS_CURSOR_NEXT, ups_db_insert(), ups_env_close(), ups_env_create(), ups_env_create_db(), ups_env_open(), ups_env_open_db(), UPS_KEY_NOT_FOUND, UPS_PARAM_KEY_TYPE, UPS_SUCCESS, and UPS_TYPE_UINT32.