adding cacheloader library
[csql.git] / examples / dbapi / README
blob4b79331bdd591a7b25126bc733061b463c053def
1 ----------------------------------README---------------------------------------
2 This contains an example program that demonstates usage of dbapi interface.
3 What it does?
4 -------------
5 It creates table t1 with two fields f1 integer and f2 string.
6 Creates hash index on f1 field of t1 table.
7 Inserts 10 rows into the table t1
8 select all rows which satisfy the condition f1 >=5 and displays
9 Delete all the rows in the table 
10 Drop the table
12 How to compile
13 --------------
14 1. Make a copy of this directory in a writable area
15 2. Edit the Makefile and set the CPlus variable to point to the C++
16    compiler on your system.
17 3. Set the necessary enviroment variables using the setup script
18    under the csql root directory
19         $. ./setupenv.ksh
20 4. Use the make command to compile
21         $make
23 How to run
24 ----------
25 1. Set the necessary enviroment variables using the setup script
26    under the csql root directory
27         $. ./setupenv.ksh
28 2. Run the executable created by make
29         $./dbapiexample
31 Note: This also contains some additional examples which are referred from the user manual.
33 Output of example:
34 ------------------
35 Table created
36 Index created
37 Total rows inserted 10
38 Selection f1 >= 5 starts on table t1
39 Tuple values:
40     f1=5 f2=Shekar
41     f1=6 f2=Pramod
42     f1=7 f2=Rakesh
43     f1=8 f2=Murthy
44     f1=9 f2=Amit
45 Total Rows selected: 5
46 Total Deleted Rows 10
47 Table dropped