The callback will be called for each object available in the
database. Note that the objects are likely to be returned in the index
order, which would make accessing the objects in that order inefficient.
Return a non-zero value from the callback to stop looping.
@param db database to use
@param cb the callback to call for each object
@param payload data to pass to the callback
@return 0 on success, non-zero callback return value, or error code
List all objects available in the database
The callback will be called for each object available in the database. Note that the objects are likely to be returned in the index order, which would make accessing the objects in that order inefficient. Return a non-zero value from the callback to stop looping.
@param db database to use @param cb the callback to call for each object @param payload data to pass to the callback @return 0 on success, non-zero callback return value, or error code