Types of callbacks
The second argument of the mi_register_callback() function is the event type. The DataBlade® API supports a type of callback for each event type.
The following table lists the types of callbacks that
the DataBlade®
API supports
and the events that invoke them.
Callback type | Event type | More information |
---|---|---|
Exception callback | MI_Exception | Database server exceptions |
Savepoint callback | MI_EVENT_SAVEPOINT | State-transition events |
Commit-abort callback | MI_EVENT_COMMIT_ABORT | State-transition events |
Post-transaction callback | MI_EVENT_POST_XACT | State-transition events |
End-of-statement callback | MI_EVENT_END_STMT | State-transition events |
End-of-transaction callback | MI_EVENT_END_XACT | State-transition events |
End-of-session callback | MI_EVENT_END_SESSION | State-transition events |
State-change callback | MI_Xact_State_Change | State-transition events |
Client LIBMI callback | MI_Client_Library_Error | Client LIBMI errors |