Integer Arrays

Integer arrays are used to store simple mappings of keys to values. In the Veil demo (The Veil Demo Application) they are used to record the extra privilege required to access person_details and project_details of each detail_type: the integer array being used to map the detail_type_id to the privilege_id.

Note that integer array elements cannot be null.

The following functions comprise the Veil int arrays API:

veil_init_int4array(text, text)

function veil_init_int4array(text, text) returns bool
Creates, or resets the ranges of, an int array.

veil_clear_int4array(text)

function veil_clear_int4array(text) returns bool
Clears (zeroes) an int array.

veil_int4array_set(text, int4, int4)

function veil_int4array_set(text, int4, int4) returns int4
Set the value of an element in an int array.

veil_int4array_get(text, int4)

function veil_int4array_get(text, int4) returns int4
Get the value of an element from an int array.

Next: Veil Control Functions


Generated on Tue Jul 31 15:35:58 2007 for Veil by  doxygen 1.5.2