pub struct Database { /* 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 not be concurrently modified by any other process
Safety
The file referenced by path
must not be concurrently modified by any other process