Skip to main content

Module context

Module context 

Source

StructsΒ§

ColCache πŸ”’
One block-cache pool, plus the column families participating in it.
Context πŸ”’
Some components are constructed prior to opening the database and must outlive the database. These can also be shared between database instances though at the time of this comment we only open one database per process. These assets are housed in the shared Context.

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.