#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 connects to a upscaledb server (see server1.c), creates a database, inserts some values, looks them up and erases them.
Definition at line 28 of file client1.c.
Referenced by main().
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 37 of file client1.c.
References ups_record_t::data, ups_key_t::data, error(), LOOP, ups_record_t::size, ups_key_t::size, ups_db_close(), ups_db_erase(), ups_db_find(), ups_db_insert(), ups_env_close(), ups_env_create(), ups_env_open_db(), UPS_KEY_NOT_FOUND, and UPS_SUCCESS.