1 ----------------------------------README---------------------------------------
2 This contains an example program that demonstates usage of sqlapi interface.
6 It creates table t1 with two fields f1 integer and f2 string.
7 Creates index on f1 field of t1 table.
8 Inserts 100 rows into the table t1, 1 insert per transaction
9 select rows with f1 value 1 to 10 and displays
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 CSQL_INSTALL_ROOT environment variable to point to your installation
18 directory or change INCL and LIB variable in the Makefile to point to
19 installation directory
20 4. Use the make command to compile
25 1. Set the CSQL_CONFIG_FILE environment variable to absolute path of csql.conf file.
26 $export CSQL_CONFIG_FILE=/tmp/csql.conf
27 2. Set the LD_LIBRARY_PATH environment variable to csql library path
28 $export LD_LIBRARY_PATH=$CSQL_INSTALL_ROOT/lib:$LD_LIBRARY_PATH
30 3. Run the executable created by make
36 Index created on t1(f1)
37 Total Rows Inserted 100
38 Row value is 0 Gopika_0
39 Row value is 1 Gopika_1
40 Row value is 2 Gopika_2
41 Row value is 3 Gopika_3
42 Row value is 4 Gopika_4
43 Row value is 5 Gopika_5
44 Row value is 6 Gopika_6
45 Row value is 7 Gopika_7
46 Row value is 8 Gopika_8
47 Row value is 9 Gopika_9