DuroDBMS API
1.7
|
Data Structures | |
struct | RDB_seq_item |
Functions | |
RDB_object * | RDB_array_get (const RDB_object *arrp, RDB_int idx, RDB_exec_context *ecp) |
RDB_int | RDB_array_length (const 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_bool | RDB_is_array (const RDB_object *objp) |
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) |
#include <rel/rdb.h>
RDB_object* RDB_array_get | ( | const 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.
The call may also fail for a system error.
RDB_int RDB_array_length | ( | const RDB_object * | arrp, |
RDB_exec_context * | ecp | ||
) |
RDB_array_length returns the length of an array.
The call may also fail for a system error.
Referenced by RDB_is_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.
The call may also fail for a system error.
RDB_bool RDB_is_array | ( | const RDB_object * | objp | ) |
Checks if *objp is an array.
References RDB_array_length(), and RDB_type_is_array().
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.
The call may also fail for a system error.
References RDB_alloc(), RDB_destroy_obj(), RDB_free(), RDB_init_obj(), and RDB_realloc().
Referenced by RDB_set_init_value().
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 | ||
) |
Create 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 | Currently unused and should be set to zero |
The call may also fail for a system error, in which case the transaction may be implicitly rolled back.