Server connection handle
BladeSmith calls mi_open() at the beginning of many of the routines it generates. The mi_open() call obtains a database server connection handle, which is a required argument in many DataBlade® API calls.
For routines running in the database server address space, except the large object DataBlade API routines, the connection handle enables client and database server routines to use the same DataBlade API routines.
When mi_open() is called at the beginning of a generated routine, mi_close() is called to release the handle immediately before the routine returns.