Previous Topic

Next Topic

What Is OpenAPI?

Open Application Programming Interface (OpenAPI) is a set of C language functions that enable you to create applications for accessing Ingres and non-Ingres databases.

It provides you with an alternative to using embedded SQL, which requires a preprocessor in addition to a C compiler. With OpenAPI, these C functions are called directly with normal function call facilities.

OpenAPI simplifies the task of developing applications when multiple interfaces, protocols, and environments are involved. It does this by providing a single interface for accessing data. You can concentrate on what data you want your application to access, rather than how it will access it.

OpenAPI provides an asynchronous method of writing applications. All OpenAPI operations are asynchronous in that a function call returns control to the application before its tasks are completed. When the tasks are completed, the function signals completion by invoking a callback function specified by the application. Thus, you can write an application as fully asynchronous, event-driven code. Alternatively, you can write synchronous code by using an OpenAPI feature that enables an application to wait for each OpenAPI function to complete its tasks.

Previous Topic

Next Topic

Common Features of Application Programming Interfaces

OpenAPI is an application programming interface, similar to Microsoft Windows ODBC and the X/Open Company SQL Call Level Interface. Application programming interfaces share the following features:

Previous Topic

Next Topic

Differences Between OpenAPI and Other Application Programming Interfaces

OpenAPI provides comparable functionality to Microsoft Windows ODBC and the X/Open Company SQL Call Level Interface. However, there are a few important differences, such as:

Previous Topic

Next Topic

OpenAPI Communication

The set of C functions in OpenAPI enable an application to connect to a DBMS Server, execute SQL statements, and retrieve results. It provides support for all Ingres SQL statements. OpenAPI also lets an application connect to the Name Server and execute Name Server query statements.

OpenAPI is an interface that currently resides on top of the Ingres client/server protocol, called the General Communications Architecture (GCA). By using the GCA protocol, OpenAPI can communicate with the following:

Previous Topic

Next Topic

Relationship of OpenAPI to Basic Ingres Architecture

Previous Topic

Next Topic

How OpenAPI Handles Backward Compatibility

OpenAPI handles backward compatibility through OpenAPI support levels.

More information:

IIapi_initialize() Function—Initialize OpenAPI to a Specified Input Version

IIapi_connect() Function—Connect to a DBMS Server or Name Server


© 2007 Ingres Corporation. All rights reserved.