Skip to main content

Crate vibesql_executor

Crate vibesql_executor 

Source
Expand description

Executor - SQL Query Execution Engine

This crate provides query execution functionality for SQL statements.

Re-exports§

pub use cache::CacheManager;
pub use cache::CacheStats;
pub use cache::CachedQueryContext;
pub use cache::PreparedStatement;
pub use cache::PreparedStatementCache;
pub use cache::PreparedStatementCacheStats;
pub use cache::PreparedStatementError;
pub use cache::QueryPlanCache;
pub use cache::QuerySignature;
pub use cursor::Cursor;
pub use cursor::CursorExecutor;
pub use cursor::CursorResult;
pub use cursor::CursorStore;
pub use cursor::FetchResult;
pub use dml_cost::DmlOptimizer;
pub use errors::ExecutorError;
pub use evaluator::clear_in_subquery_cache;
pub use evaluator::ExpressionEvaluator;
pub use index_ddl::AnalyzeExecutor;
pub use index_ddl::CreateIndexExecutor;
pub use index_ddl::DropIndexExecutor;
pub use index_ddl::IndexExecutor;
pub use index_ddl::ReindexExecutor;
pub use memory::QueryArena;
pub use persistence::load_sql_dump;
pub use pipeline::ColumnarPipeline;
pub use pipeline::ExecutionContext;
pub use pipeline::ExecutionPipeline;
pub use pipeline::NativeColumnarPipeline;
pub use pipeline::PipelineInput;
pub use pipeline::PipelineOutput;
pub use pipeline::RowOrientedPipeline;
pub use readonly::ReadOnlyError;
pub use readonly::ReadOnlyQuery;
pub use readonly::SharedDatabase;
pub use select::SelectExecutor;
pub use select::SelectResult;
pub use session::PreparedExecutionResult;
pub use session::Session;
pub use session::SessionError;
pub use session::SessionMut;
pub use timeout::TimeoutContext;
pub use truncate_table::TruncateTableExecutor;

Modules§

advanced_objects
Executor for advanced SQL:1999 objects
arena
Query-lifetime arena allocator for temporary buffers
cache
Query plan caching module
correlation
Correlation detection for subqueries
cursor
Cursor execution (SQL:1999 Feature E121)
debug_output
Structured debug output infrastructure
dml_cost
DML Cost-Based Optimization
errors
evaluator
expression_index_maintenance
Expression index maintenance for DML operations
foreign_key_check
Shared foreign-key validation helpers.
index_ddl
CREATE INDEX, DROP INDEX, REINDEX, and ANALYZE statement execution
information_schema
Information Schema Virtual Tables
limits
Execution limits and safeguards
memory
Memory management utilities for efficient query execution
mvcc
Executor-side MVCC helpers.
partial_index_maintenance
Partial-index maintenance for DML operations.
persistence
Database Persistence - Loading SQL Dumps
pipeline
Unified Execution Pipeline
procedural
Stored Procedures and User-Defined Functions
profiling
Performance profiling and debug utilities for understanding bottlenecks
readonly
Read-only query execution for concurrent access.
schema
select
session
Session - Prepared Statement Execution Context
sqlite_schema
SQLite Schema Virtual Table
sqlite_stat
SQLite Statistics Virtual Tables
timeout
Timeout context for query execution
truncate
TRUNCATE TABLE statement execution

Macros§

debug_emit
Macro for creating debug events with both text and JSON output
profile
Macro to create a profiling scope

Structs§

AlterTableExecutor
Executor for ALTER TABLE statements
BeginTransactionExecutor
Executor for BEGIN TRANSACTION statements
CommitExecutor
Executor for COMMIT statements
ConstraintValidator
Constraint validator for table creation and alteration
CreateTableExecutor
Executor for CREATE TABLE statements
DeleteExecutor
Executor for DELETE statements
DomainExecutor
Executor for domain DDL statements
DropTableExecutor
Executor for DROP TABLE statements
ExplainExecutor
Executor for EXPLAIN statements
ExplainResult
Result of EXPLAIN operation
GrantExecutor
Executor for GRANT statements
InsertExecutor
Executor for INSERT statements
InsertOutcome
Outcome of an INSERT statement execution.
IntrospectionExecutor
Executor for database introspection commands
PlanNode
Represents a single node in the query execution plan
PrivilegeChecker
Centralized privilege checking for all database operations
ReleaseSavepointExecutor
Executor for RELEASE SAVEPOINT statements
RevokeExecutor
Executor for REVOKE statements
RoleExecutor
Executor for role DDL statements
RollbackExecutor
Executor for ROLLBACK statements
RollbackToSavepointExecutor
Executor for ROLLBACK TO SAVEPOINT statements
SavepointExecutor
Executor for SAVEPOINT statements
SchemaExecutor
Executor for schema DDL statements
SelectIntoExecutor
SqliteVmOutput
SQLite VM EXPLAIN output
TriggerExecutor
Executor for trigger DDL operations
TriggerFirer
Helper struct for trigger firing (execution during DML operations)
TypeExecutor
Executor for type DDL statements
UpdateExecutor
Executor for UPDATE statements
ViewExecutor
Executor for view DDL statements
VmInstruction
Represents a single SQLite VM instruction for EXPLAIN output

Enums§

TriggerOutcome
Outcome of firing a trigger (or set of triggers) for a row.

Functions§

evaluate_default_expression
Evaluate a DEFAULT expression to get its value Supports literals, special functions (CURRENT_DATE, CURRENT_USER, etc.), sequences, and unary expressions (+val, -val) for numeric defaults Note: For NextValue expressions, this function signature needs database access This will require refactoring to pass db context
live_deferred_fk_violation_count
Count deferred FK violations whose constraints would still fail against the current visible state of the database.