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 prepared_statement::ResolvedProjection;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§
- Cache
Stats - Statistics about cache performance
- Query
Plan Cache - Generic type-erased cache for storing parsed AST and plans This intentionally avoids caching results - plans are still executed
- Query
Result Cache - Thread-safe cache for query results
- Query
Signature - Unique identifier for a query based on its structure