informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_save_set_create()

The mi_save_set_create() function creates a save set on the current connection.

Syntax

Usage

The mi_save_set_create() function is a constructor function for a save set. A save set is an area of memory used to store rows fetched from a DataBlade API function. It provides a mechanism for manipulating multiple database rows in memory. Rows stored in a save set can be traversed with the DataBlade API functions mi_save_set_get_first(), mi_save_set_get_next(), and mi_save_set_get_previous().

The mi_save_set_create() function allocates a new save-set structure in the PER_STATEMENT memory duration.

When the DataBlade API module no longer requires the save set, free the save-set resources with mi_save_set_destroy(). A save set is freed when the connection on which it was created is closed.

Return Values

MI_SAVE_SET * is a pointer to a new save set.
NULL indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_save_set_delete(), mi_save_set_get_first(), mi_save_set_get_last(), mi_save_set_get_next(), mi_save_set_get_previous(), and mi_save_set_insert().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved