Using CCI

Basic Flow Diagram of the Application Using CCI

To use CUBRID, the following procedures are required for applications using the CCI libraries to execute queries: connection to CAS, query preparation, query execution, response handling, and disconnection. In each process, CCI communicates with the application using connection, query and response handles.

The following flowchart shows the process of the application using CCI and the functions used in each step. See CCI API in the API Reference for more information.

How to use

Once you have created the application using CCI, you should decide, according to its features, whether to execute CCI as a static link or dynamic link before you build it. Determine the library to use by referring to the table in the CCI Installation and Configuration.

The following example shows Makefile to use the dynamic link library on UNIX/Linux:

CC=gcc

CFLAGS = -g -Wall -I. -I$CUBRID/include

LDFLAGS = -L$CUBRID/lib -lcascci -lnsl

TEST_OBJS = test.o

EXES = test

all: $(EXES)

test: $(TEST_OBJS)

 $(CC) -o $@ $(TEST_OBJS) $(LDFLAGS)

The following is the settings for using the static library on Windows: