WYRDTEK Home Features Reference Downloads About


Reference/es_mbb_mbn_v

Syntax

int es_mbb_mbn_v( struct es_mbb *fb, const char *fieldname, struct es_mbn **pvar );

Arguments

struct es_mbb *fb Field-binding collection.
const char *fieldname Database field name.
struct es_mbn **pvar Reference to database node program variable.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_INVALIDFIELDTYPE Database field is not child node or node-reference field (ES_FLDTYPE_MBN).
ES_ERROR_UNKNOWNFIELD Unknown database field in this class.

Description

Bind by value the database node program variable referenced by pvar with the database field fieldname. The field-binding fb must have been previously constructed via es_mbb_new().

Binding by value means that the value reference by pvar (i.e. *pvar) is copied to the database during an insert/update operation and fieldname's value is copied to *pvar during a fetch operation.

[Back To Reference] [Back To Reference/es_mbb]