Module test_utils
Available on crate features
provider
and 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_ rw_ db - Create read/write database for testing
- create_
test_ rw_ db_ with_ path - Create read/write database for testing
- create_
test_ static_ files_ dir - Create
static_files
path for testing - tempdir_
path - Get a temporary directory path to use for the database