#include <db_cxx.h> int DbStream::close(u_int32_t flags);
The DbStream::close()
method flushes any
unwritten data to disk, frees allocated resources, and closes the
underlying file which contains the external file. You open an external
file stream using
Dbc::db_stream()
.
Once this method is called, the stream can not be used again even if this method returns an error.
Unless otherwise specified, the
DbStream::close()
method either returns a non-zero error value or throws an
exception that encapsulates a non-zero error value on
failure, and returns 0 on success.
The DbStream::close()
method may fail and throw a DbException
exception, encapsulating one of the following non-zero errors, or return one
of the following non-zero errors: