WYRDTEK Home Features Reference Downloads About



int es_mba_addmembership( struct es_mba *agg, const char *fieldname, struct es_mbm *mf );


struct es_mba *agg Database aggregator.
const char *fieldname Database field name.
struct es_mbm *mf Membership filter.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_UNKNOWNFIELD Database field does not exist in definition used to construct aggregator.


Assign a membership filter to a database field to be used in the query plan devised by es_mba_prepare().

The database field fieldname must be available in the single iteration path identified in the query plan, since membership filters can only be used in conjunction with es_mbi_beginfetch() and es_mbi_incfetch().

[Back To Reference] [Back To Reference/es_mba]