Validate catalog statement (DDL operations)
(
catalog_stmt: &CatalogStatement,
_ctx: &mut ValidationContext,
errors: &mut Vec<ValidationError>,
)
| 2597 | |
| 2598 | /// Validate catalog statement (DDL operations) |
| 2599 | fn validate_catalog_statement( |
| 2600 | catalog_stmt: &CatalogStatement, |
| 2601 | _ctx: &mut ValidationContext, |
| 2602 | errors: &mut Vec<ValidationError>, |
| 2603 | ) { |
| 2604 | match catalog_stmt { |
| 2605 | CatalogStatement::CreateSchema(create_schema) => { |
| 2606 | validate_create_schema_statement(create_schema, errors); |
| 2607 | } |
| 2608 | CatalogStatement::DropSchema(drop_schema) => { |
| 2609 | validate_drop_schema_statement(drop_schema, errors); |
| 2610 | } |
| 2611 | CatalogStatement::CreateGraph(create_graph) => { |
| 2612 | validate_create_graph_statement(create_graph, errors); |
| 2613 | } |
| 2614 | CatalogStatement::DropGraph(drop_graph) => { |
| 2615 | validate_drop_graph_statement(drop_graph, errors); |
| 2616 | } |
| 2617 | _ => { |
| 2618 | // Other catalog statements don't need specific validation yet |
| 2619 | } |
| 2620 | } |
| 2621 | } |
| 2622 | |
| 2623 | /// Validate a query within a procedure body - doesn't require RETURN clause |
| 2624 | fn validate_procedure_query( |
no test coverage detected