Available on crate features
test-utils only.Expand description
Collection of database test utilities
Structs§
- Temp
Database - A database will delete the db dir when dropped.
Constants§
- ERROR_
DB_ CREATION - Error during database creation
- ERROR_
DB_ OPEN - Error during database open
- ERROR_
STATIC_ FILES_ CREATION - Error during database creation
- ERROR_
TABLE_ CREATION - Error during table creation
- ERROR_
TEMPDIR - Error during tempdir creation
Functions§
- create_
test_ ro_ db - Create read only database for testing
- create_
test_ rocksdb_ dir - Create
rocksdbpath for testing - create_
test_ rw_ db - Create read/write database for testing
- create_
test_ rw_ db_ with_ datadir - Create read/write database for testing within a data directory.
- create_
test_ rw_ db_ with_ path - Create read/write database for testing
- create_
test_ static_ files_ dir - Create
static_filespath for testing - enable_
legacy_ multiopen - Enables MDBX legacy multi-open mode, allowing the same database to be opened multiple times within a single process. This is needed for tests that simulate concurrent primary + read-only secondary provider scenarios.
- tempdir_
path - Get a temporary directory path to use for the database