Struct redb::DatabaseBuilder
source · [−]pub struct DatabaseBuilder { /* private fields */ }
Implementations
Opens the specified file as a redb database.
- if the file does not exist, or is an empty file, a new database will be initialized in it
- if the file is a valid redb database, it will be opened
- otherwise this function will return an error
db_size
: the maximum size in bytes of the database.
Safety
The file referenced by path
must only be concurrently modified by compatible versions
of redb