WYRDTEK Home Features Reference Downloads About


Reference/es_mbi

struct es_mbi is an opaque data structure representing an iterator. An iterator is an object that can be used to traverse all the rows in a database node. It can be thought of as a pointer to a position in a database. Iterators are constructed with respect to a field-binding ( struct es_mbb ) and can be used to insert, update and fetch data.
es_mbi_new Construct a new iterator with respect to a field-binding.
es_mbi_delete Delete an iterator.
es_mbi_copyrelfetch Copy relative iterator position and fetch contents of row.
es_mbi_findfetch Lookup row by index and fetch its contents. Set iterator to point at row.
es_mbi_findupdate Lookup row by index and update it. Create row if it does not exist. Set iterator to point at row.
es_mbi_findremoveidx Lookup row by index and update it. Remove row from index. Set iterator to point at row.
es_mbi_insert Insert new row and update it. Set iterator to point at new row. For use with ES_INDEX_NONE index types with or without an index field.
es_mbi_fetch Fetch row contents at current iterator position.
es_mbi_update Update row contents at current iterator position.
es_mbi_begininit Associate an iterator with a node but dont update its position.
es_mbi_beginfetch Set iterator to point at the first row in node and fetch its contents.
es_mbi_incfetch Increment iterator to point at the next row and fetch its contents.

[Back To Reference]