NuDB Logo

PrevUpHomeNext

basic_store::close

Close the database.

void
close(
    error_code& ec);

All data is committed before closing.

If an error occurs, the database is still closed.

Requirements

The database must be open.

Thread safety

Not thread safe. The caller is responsible for ensuring that no other member functions are called concurrently.

Parameters

ec

Set to the error, if any occurred.


PrevUpHomeNext