Skip to main content

plan_truncate_stmt

Function plan_truncate_stmt 

Source
pub fn plan_truncate_stmt(
    stmt: &Statement,
    catalog: &dyn SqlCatalog,
) -> Result<Vec<SqlPlan>>
Expand description

Plan a TRUNCATE statement.

Each named collection resolves through the catalog: a vector-primary collection lowers to SqlPlan::VectorPrimaryTruncate, every other engine routes through its EngineRules::plan_truncate.