upscaledb  2.2.1
Data Structures | Macros | Functions
env1.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ups/upscaledb.h>

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)
 

Macro Definition Documentation

#define DBNAME_CUSTOMER   1

Definition at line 36 of file env1.c.

Referenced by main().

#define DBNAME_ORDER   2

Definition at line 37 of file env1.c.

Referenced by main().

#define MAX_CUSTOMERS   4

Definition at line 39 of file env1.c.

Referenced by main().

#define MAX_DBS   2

Definition at line 34 of file env1.c.

Referenced by main().

#define MAX_ORDERS   8

Definition at line 40 of file env1.c.

Referenced by main().

Function Documentation

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 
)