Skip to main content

Module context

Module context 

Source

StructsΒ§

ColCache πŸ”’
One block-cache pool, plus the column families participating in it.
Context πŸ”’
Holds shared resources that must outlive an opened database.

ConstantsΒ§

SHARED_POOL πŸ”’
Name under which the shared block cache (every CF with CacheDisp::Shared) is registered in Context::col_cache.

FunctionsΒ§

after_close πŸ”’
For unit and integration tests the β€˜cleanup’ directive deletes after close to cleanup.
before_open πŸ”’
For unit and integration tests the β€˜fresh’ directive deletes found db.
delete_database_for_testing πŸ”’
For unit and integration tests; removes the database directory when called. To prevent misuse, cfg!(test) must be true for a unit test or the integration test server is named localhost.

Type AliasesΒ§

ColCaches πŸ”’
Map of block-cache pools keyed by pool name. The pool name is either SHARED_POOL or the first-arrival CF that created it.