NuDB Logo

PrevUpHomeNext

basic_store::key_size

Return the key size associated with the database.

std::size_t
key_size() const;

The key size is defined by the application when the database is created in a call to create. The key size cannot be changed on an existing database.

Requirements

The database must be open.

Thread safety

Safe to call concurrently with any function except open or close.

Return Value

The size of keys in the database.


PrevUpHomeNext