Session, thread, and transaction management

The DataBlade® API provides categories of functions for managing sessions, threads, and transactions.

Table 1. DataBlade API functions for managing sessions, threads, and transactions

Function category DataBlade API function DataBlade API function
Obtaining connection information Connection-parameter functions:

mi_get_connection_info()
mi_get_default_connection_info()
mi_set_default_connection_info()

Session-parameter functions:

mi_get_parameter_info()
mi_set_parameter_info()

Connection user-data functions:

mi_get_connection_user_data()
mi_set_connection_user_data()

Database-parameter functions:

mi_get_database_info()
mi_get_default_database_info()
mi_set_default_database_info()

Other connection functions:

mi_get_connection_option()
mi_get_id()
mi_get_next_sysname()
mi_get_serverenv()
mi_sysname()

Establishing a connection Server side:

mi_open()

Server side, Advanced function:

mi_get_session_connection()

Client side:

mi_open()
mi_server_connect()
mi_server_reconnect()

Closing a connection mi_close()
Initializing the DataBlade API

mi_init_library()
mi_client_locale()
mi_get_default_connection_info()
mi_get_default_database_info()
mi_get_next_sysname()
mi_get_parameter_info()

mi_open()
mi_register_callback()
mi_server_connect()
mi_set_parameter_info()
mi_sysname()

Managing HCL OneDB™ threads (server side only)

mi_call()
mi_interrupt_check()
mi_yield()

Advanced function:

mi_call_on_vp()

Obtaining transaction and server-processing state changes

mi_transaction_state() (Server)
mi_transition_type()
mi_get_transaction_id()