C API  19.3.0
Oracle NoSQL Database C Client
Data results

Functions

const char * kv_result_get_table_name (const kv_result_t *result)
 Returns the table name from the result handle. More...
 
kv_row_tkv_result_get_row (const kv_result_t *result)
 Returns the row from the result handle. More...
 
kv_version_tkv_result_get_version (const kv_result_t *result)
 Returns the version from the result handle. More...
 
kv_row_tkv_result_get_index_key (const kv_result_t *result)
 Returns the index key from the result handle. More...
 
kv_row_tkv_result_get_prev_row (const kv_result_t *result)
 Returns the previous row from the result handle. More...
 
kv_version_tkv_result_get_prev_row_version (const kv_result_t *result)
 Returns the version of previous row from the result handle. More...
 
kv_boolean_t kv_result_get_success (const kv_result_t *result)
 Identifies if the execution of an operation was successfully. More...
 
kv_long_t kv_result_get_expiration (const kv_result_t *result)
 Returns the expiration time of current row from the result handle. More...
 
void kv_release_result (kv_result_t **resultp)
 Releases the resources used by the result handle. More...
 
kv_error_t kv_copy_version (const kv_version_t *from, kv_version_t **to)
 Copies a version structure. More...
 
void kv_release_version (kv_version_t **versionp)
 Releases the resources used by the version structure. More...
 

Detailed Description

The result structure contains return information for a single row returned by a data access function. The information available depends on parameters supplied for the operation and may include table name, row, version, previous row, previous row version, index key and success information. The following describes what is available and when:

Function Documentation

kv_error_t kv_copy_version ( const kv_version_t from,
kv_version_t **  to 
)

Copies a version structure.

Parameters
[in]fromThe version structure to be copied.
[in]toThe output version structure, it should be released using kv_release_version().
void kv_release_result ( kv_result_t **  resultp)

Releases the resources used by the result handle.

Parameters
[in]resultpThe pointer to the result handle to release.
void kv_release_version ( kv_version_t **  versionp)

Releases the resources used by the version structure.

Parameters
[in]versionpThe pointer to the version handle to release.
kv_long_t kv_result_get_expiration ( const kv_result_t result)

Returns the expiration time of current row from the result handle.

Parameters
[in]resultThe result handle.
Returns
The expiration time of current row, or an error code (a negative number) if result is NULL.
kv_row_t* kv_result_get_index_key ( const kv_result_t result)

Returns the index key from the result handle.

Note
The returned index key handle is owned by result handle and released implicitly when it is released.
Parameters
[in]resultThe result handle.
Returns
the index key handle, or NULL if it is not available.
kv_row_t* kv_result_get_prev_row ( const kv_result_t result)

Returns the previous row from the result handle.

Note
The returned previous row handle is owned by result handle and released implicitly when it is released.
Parameters
[in]resultThe result handle.
Returns
the previous row handle, or NULL if it is not available.
kv_version_t* kv_result_get_prev_row_version ( const kv_result_t result)

Returns the version of previous row from the result handle.

Note
The returned version handle is owned by result handle and released implicitly when it is released.
Parameters
[in]resultThe result handle.
Returns
the previous row version handle, or NULL if it is not available.
kv_row_t* kv_result_get_row ( const kv_result_t result)

Returns the row from the result handle.

Note
The returned row handle is owned by result handle and released implicitly when it is released.
Parameters
[in]resultThe result handle.
Returns
the row handle, or NULL if it is not available.
kv_boolean_t kv_result_get_success ( const kv_result_t result)

Identifies if the execution of an operation was successfully.

Parameters
[in]resultThe result handle.
Returns
KV_TRUE if the result contains the success information and operation operated successfully, otherwise return KV_FALSE.
const char* kv_result_get_table_name ( const kv_result_t result)

Returns the table name from the result handle.

Parameters
[in]resultThe result handle.
Returns
the table name, or NULL if it is not available.
kv_version_t* kv_result_get_version ( const kv_result_t result)

Returns the version from the result handle.

Note
The returned version handle is owned by result handle and released implicitly when it is released.
Parameters
[in]resultThe result handle.
Returns
the version handle, or NULL if it is not available.