WYRDTEK Home Features Reference Downloads About



void es_mb_delete( struct es_mb *db );


struct es_mb *db A database object instance.


Destroy database instance and recover all resources. Database must already have been constructed via a call to es_mb_new.

es_mb_delete() loops over each root node in the database and destroys them via call to es_mbn_delete(), which recurses to destory all child and descendent nodes.

NULL child and descendant nodes are ignored.

References to duplicate child nodes are recognised by es_mb_delete()/es_mbn_delete() and do not result in an error.

Databases that are memory-mapped to files via es_mb_loadmap() are un-mapped.

[Back To Reference] [Back To Reference/es_mb]