6. Creating an Application with OpenAPI : Sample Code : How the Synchronous Sample Code Works : Source File Descriptions
 
Share this page                  
Source File Descriptions
The following list identifies the synchronous sample source files and the OpenAPI functionality they demonstrate.
apisinit.c
Demonstrates OpenAPI initialization, termination, and handling of environment handles.
apisdata.c
Demonstrates data conversion using IIapi_convertData() and IIapi_formatData().
apiserr.c
Demonstrates processing OpenAPI status results and error handling.
apisconn.c
Demonstrates establishing, terminating, and aborting connections.
apiscomm.c
Demonstrates committing transactions.
apisroll.c
Demonstrates rolling back transactions, setting savepoints, and rolling back to a savepoint.
apisauto.c
Demonstrates starting and ending autocommit transactions.
apis2ph1.c
Demonstrates distributed transactions (part 1): register transaction ID and prepare to commit.
apis2ph2.c
Demonstrates distributed transactions (part 2): connect to transaction, rollback, release transaction ID.
apisparm.c
Demonstrates handling of query parameters.
apissell.c
Demonstrates retrieving data using a select loop and canceling a query.
apisselc.c
Demonstrates retrieving data using a cursor.
apisscrl.c
Demonstrates retrieving data using a scrollable cursor.
apiscdel.c
Demonstrates deleting rows using a cursor.
apiscupd.c
Demonstrates updating rows using a cursor.
apisproc.c
Demonstrates executing database procedures.
apisprbr.c
Demonstrates executing database procedures with BYREF parameters.
apisprrp.c
Demonstrates executing row-producing database procedures.
apisprgt.c
Demonstrates executing database procedures with global temporary table parameters.
apiscopy.c
Demonstrates using COPY TABLE statement to transfer data between application and DBMS.
apisrept.c
Demonstrates defining and executing repeat statements.
apisblob.c
Demonstrates processing BLOB parameters and results.
apisname.c
Demonstrates accessing Name Server VNODE information.