A high performance, insert-only key/value database for SSDs.
template< class Hasher, class File> class basic_store
Name |
Description |
---|---|
Return the appnum associated with the database. |
|
Default constructor. Copy constructor (disallowed) |
|
Return the block size associated with the database. |
|
Close the database. |
|
Return the path to the data file. |
|
Fetch a value. |
|
Insert a value. |
|
Returns true if the database is open. |
|
Return the path to the key file. |
|
Return the key size associated with the database. |
|
Return the path to the log file. |
|
Open a database. |
|
Copy assignment (disallowed) |
|
Destroy the database. |
To create a database first call the create
free function. Then construct
a basic_store
and call open
on it:
error_code ec; create<xxhasher>( "db.dat", "db.key", "db.log", 1, make_salt(), 8, 4096, 0.5f, ec); basic_store<xxhasher, native_file> db; db.open("db.dat", "db.key", "db.log", ec);
The hash function to use. This type must meet the requirements of Hasher.
The type of File object to use. This type must meet the requirements of File.
Header: nudb/basic_store.hpp