Chapter 8: Working with Array Data

From InterBase
Jump to: navigation, search

This chapter describes arrays of datatypes and how to work with them using API functions. It shows how to set up an array descriptor specifying the array or array subset to be retrieved or written to, and how to use the two API functions that control access to arrays.

The following table summarizes the API functions for working with arrays. First the functions that can be used to populate an array descriptor are listed, followed by the functions for accessing array data.

Table 8.1 API Array Access Functions

Function Purpose
isc_array_lookup_desc2() Looks up and stores into an array descriptor the datatype, length, scale, and dimensions for all elements in the specified array column of the specified table
isc_array_lookup_bounds2() Performs the same actions as the function, isc_array_lookup_desc2(), but also looks up and stores the upper and lower bounds of each dimension
sc_array_set_desc2() Initializes an array descriptor from parameters passed to it
isc_array_get_slice2() Retrieves data from an array
isc_array_put_slice2() Writes data to an array

Advance To