Module schema_cache

Module schema_cache 

Source
Expand description

Schema metadata cache for tab completion.

Provides a SchemaCache struct that caches CQL schema metadata (keyspaces, tables, columns, UDTs, functions, aggregates) fetched from the database. The cache supports TTL-based staleness checks so it refreshes periodically.

The REPL wraps SchemaCache in an Arc<RwLock<>> for shared async access.

Structs§

SchemaCache
Cached schema metadata for a CQL cluster.

Constants§

DEFAULT_TTL 🔒
Default TTL for cached schema data (30 seconds).