#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ups/upscaledb.h>
Go to the source code of this file.
A simple example which creates a database, inserts some values, looks them up and erases them.
Definition at line 28 of file db1.c.
Referenced by main().
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 38 of file db1.c.
References ups_record_t::data, ups_key_t::data, DATABASE_NAME, error(), LOOP, ups_record_t::size, ups_key_t::size, UPS_AUTO_CLEANUP, ups_db_close(), ups_db_erase(), ups_db_find(), 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_PARAM_RECORD_SIZE, UPS_SUCCESS, and UPS_TYPE_UINT32.