Row
[C API]


Detailed Description

Data is stored and retrieved through rows.

A row is a set of temporary buffers for storing the contents of database fields. Each field in a row can be stored in one of three locations: a managed internal buffer, a local variable referenced by memory address, or a member of a data structure. A row variable is independent of any specific row in the database and can be re-used for many insert, fetch and update operations.


Data Structures

struct  db_bind_t
 Row binding description. More...

Typedefs

typedef struct db_row_t_s * db_row_t

Functions

db_row_t db_alloc_row (const db_bind_t *, db_fieldno_t nbinds)
db_row_t db_alloc_cursor_row (db_cursor_t)
db_result_t db_free_row (db_row_t)
db_len_t db_get_field_size (db_row_t, db_fieldno_t)
db_vartype_t db_get_field_type (db_row_t, db_fieldno_t)
db_len_t db_get_field_len (db_row_t, db_fieldno_t)
db_result_t db_set_field_len (db_row_t, db_fieldno_t, db_len_t)
void * db_get_field_buffer (db_row_t, db_fieldno_t)
db_len_t db_get_field_data (db_row_t, db_fieldno_t, db_vartype_t data_type, void *data_ptr, db_len_t data_size)
db_result_t db_set_field_data (db_row_t, db_fieldno_t, db_vartype_t data_type, const void *data_ptr, db_len_t data_length)
int db_is_null (db_row_t, db_fieldno_t)
db_result_t db_set_null (db_row_t, db_fieldno_t)
db_result_t db_bind_field (db_row_t hrow, const db_bind_t *)
db_result_t db_unbind_field (db_row_t, db_fieldno_t)
db_result_t db_bind_init (db_bind_t *)
db_result_t db_bind_destroy (db_bind_t *)


Copyright © 2005-2007 ITTIA®. All rights reserved.