Home | Previous Page | Next Page   Database Access > Handling Connections > Understanding Session Management >

Connection Descriptor

A DataBlade API module (C UDR or client LIBMI application) obtains access to the session context through a connection descriptor, MI_CONNECTION. This descriptor is an opaque C data structure that points to the threadsafe context-sensitive portion of the session information. The session context includes the information in Table 44.

Table 44. Session-Context Information in a Connection Descriptor
Connection Information More Information
Save sets Using Save Sets
Statement descriptors:
  • For SQL statement, last executed with mi_exec( )
  • For prepared statements

Executing Basic SQL Statements

Executing Prepared SQL Statements

Cursors (implicit and explicit) Queries and Implicit Cursors and Defining an Explicit Cursor
Resources for the current row of the current statement:
  • Row descriptor
  • Row structure
Retrieving Query Data
Function descriptors Obtaining a Function Descriptor
Callbacks registered for the connection Registering a Callback
User data Associating User Data with a Connection
The integer byte order of the client computer Conversion of Opaque-Type Data with Computer-Specific Data Types

You obtain a connection descriptor when you establish a connection in the DataBlade API module. For more information, see Establishing a Connection.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]