#include <db_cxx.h> int Db::get_pagesize(u_int32_t *pagesizep);
The Db::get_pagesize()
method returns the database's current page size, as
set by the
Db::set_pagesize()
method. Note that if Db::set_pagesize()
was not called by your
application, then the default pagesize is selected based on the underlying filesystem I/O block size.
If you call Db::get_pagesize()
before you have opened the
database, the value returned by this method is therefore the underlying filesystem I/O block size.
The Db::get_pagesize()
method may be called only after the database has been opened.
The Db::get_pagesize()
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.