Data Structures | |
| struct | RDB_seq_item |
Functions | |
| int | RDB_table_to_array (RDB_object *arrp, RDB_object *tbp, int seqitc, const RDB_seq_item seqitv[], int flags, RDB_exec_context *ecp, RDB_transaction *txp) |
| RDB_object * | RDB_array_get (RDB_object *arrp, RDB_int idx, RDB_exec_context *ecp) |
| RDB_int | RDB_array_length (RDB_object *arrp, RDB_exec_context *ecp) |
| int | RDB_set_array_length (RDB_object *arrp, RDB_int len, RDB_exec_context *ecp) |
| int | RDB_array_set (RDB_object *arrp, RDB_int idx, const RDB_object *objp, RDB_exec_context *ecp) |
| RDB_object* RDB_array_get | ( | RDB_object * | arrp, | |
| RDB_int | idx, | |||
| RDB_exec_context * | ecp | |||
| ) |
RDB_array_get returns a pointer to the RDB_object at index idx. This pointer may become invalid after the next invocation of RDB_array_get(). The pointer will become invalid when the array is destroyed.
| RDB_int RDB_array_length | ( | RDB_object * | arrp, | |
| RDB_exec_context * | ecp | |||
| ) |
RDB_array_length returns the length of an array.
| int RDB_array_set | ( | RDB_object * | arrp, | |
| RDB_int | idx, | |||
| const RDB_object * | objp, | |||
| RDB_exec_context * | ecp | |||
| ) |
RDB_array_set copies the RDB_object pointed to by tplp into the RDB_object at index idx.
RDB_array_set is not supported for arrays which have been created using RDB_table_to_array with the RDB_UNBUFFERED flag.
| int RDB_set_array_length | ( | RDB_object * | arrp, | |
| RDB_int | len, | |||
| RDB_exec_context * | ecp | |||
| ) |
RDB_set_array_length sets the length of the array specified by arrp.
This function is not supported for arrays which have been created using RDB_table_to_array with the RDB_UNBUFFERED flag.
| int RDB_table_to_array | ( | RDB_object * | arrp, | |
| RDB_object * | tbp, | |||
| int | seqitc, | |||
| const RDB_seq_item | seqitv[], | |||
| int | flags, | |||
| RDB_exec_context * | ecp, | |||
| RDB_transaction * | txp | |||
| ) |
RDB_table_to_array creates an array which contains all tuples from the table specified by tbp. If seqitc is zero, the order of the tuples is undefined. If seqitc is greater than zero, the order of the tuples is specified by seqitv.
| flags | Must be 0 or RDB_UNBUFFERED. If flags is set to RDB_UNBUFFERED, an array access will result in an access to *tbp with the following consequences:
|
1.5.1