upscaledb  2.2.1
Data Structures | Macros | Functions
env3.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <ups/upscaledb.hpp>

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)
 

Macro Definition Documentation

#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().

Function Documentation

int main ( int  argc,
char **  argv 
)
int run_demo ( )