Module cache

Module cache 

Source
Expand description

Query plan caching module

Provides query plan caching infrastructure to optimize repeated query patterns. Queries with identical structure (different literals) reuse cached plans.

Re-exports§

pub use integration::CacheManager;
pub use integration::CachedQueryContext;
pub use parameterized::LiteralExtractor;
pub use parameterized::LiteralValue;
pub use parameterized::ParameterPosition;
pub use parameterized::ParameterizedPlan;
pub use prepared_statement::arena_prepared::ArenaBindError;
pub use prepared_statement::arena_prepared::ArenaParseError;
pub use prepared_statement::arena_prepared::ArenaPreparedStatement;
pub use prepared_statement::CachedPlan;
pub use prepared_statement::ColumnProjection;
pub use prepared_statement::PkPointLookupPlan;
pub use prepared_statement::PreparedStatement;
pub use prepared_statement::PreparedStatementCache;
pub use prepared_statement::PreparedStatementCacheStats;
pub use prepared_statement::PreparedStatementError;
pub use prepared_statement::ProjectionPlan;
pub use table_extractor::extract_tables_from_select;
pub use table_extractor::extract_tables_from_statement;

Modules§

integration
Cache management and integration utilities
parameterized
Parameterized plan support for literal extraction and binding
prepared_statement
Prepared statement caching for optimized query execution
table_extractor
Extract table names from AST for cache invalidation

Structs§

CacheStats
Statistics about cache performance
QueryPlanCache
Generic type-erased cache for storing parsed AST and plans This intentionally avoids caching results - plans are still executed
QueryResultCache
Thread-safe cache for query results
QuerySignature
Unique identifier for a query based on its structure