![]() |
using store = basic_store< xxhasher, native_file >;
store::store
nudb::basic_store
nudb__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) |
|
|
Set the burst size. |
|
|
Destroy the database. |
To create a database first call the create free function. Then construct
a basic_store
and call basic_store::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);
|
Type |
Description |
|---|---|
|
|
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. |
The Hasher used is is xxhasher, which works very well
for almost all cases. The File is native_file
which works on Windows and POSIX platforms.
#include <nudb/store.hpp>