void close( error_code& ec);
All data is committed before closing.
If an error occurs, the database is still closed.
The database must be open.
Not thread safe. The caller is responsible for ensuring that no other member functions are called concurrently.
Set to the error, if any occurred.