Define an explicit cursor

The control flag of mi_open_prepared_statement() allows you to define an explicit cursor to hold the rows that the prepared query returns. When you define the cursor, you can choose the cursor type, cursor mode, and cursor life span.