Home

Getting Started

Utilities

Indexing

Omnidex

Development

Tutorials

Quick Links

 

OmniAccess API

Functions

Syntax

Options

Example

 

OmniAccess API

Programming Basics

Managing Data

Functions

 

OADISCONNECT

oadisconnect terminates the catalog connection and closes the environment established by oaconnect. oadisconnect automatically closes any open cursors and all index files. Omnidex Client applications should always call oadisconnect before they terminate to free up the memory used by cursors and instances, and to close any socket connections to the server.

Before calling oadisconnect, it is recommended that your program close any unused cursors.

 

Syntax

oadisconnect (instance, options, status)

instance -- Identifies a unique connection to a catalog previously established by oaconnect. Instance is a 32-bit signed integer passed by value.

options -- Is a character string, passed by reference, that indicates the action or actions for oadisconnect to take. Terminate the option list with a semicolon or a null character.

status -- Indicates the success or failure of the oadisconnect routine. A zero in status word 1 indicates a successful oadisconnect call. The status structure is passed by reference and contains fourteen 32-bit signed integers, followed by a 36-character buffer.

 

 

Options

FLUSH={[EA][,DA][,IA]} -- flushes the entire cache from memory for any or all of the EnvironmentAccess (EA), DataAccess (DA) or IndexAccess (IA) cache established through oaconnect. This is the default for OMNIDEX Client applications.

 

 

Example

 

Top