(query: &BasicQuery, errors: &mut Vec<ValidationError>)
| 821 | } |
| 822 | |
| 823 | fn validate_basic_query_structure(query: &BasicQuery, errors: &mut Vec<ValidationError>) { |
| 824 | // Check for required MATCH clause |
| 825 | if query.match_clause.patterns.is_empty() { |
| 826 | errors.push(ValidationError { |
| 827 | message: "Query must have at least one path pattern in MATCH clause".to_string(), |
| 828 | location: None, |
| 829 | error_type: ValidationErrorType::Structural, |
| 830 | }); |
| 831 | } |
| 832 | |
| 833 | // Check for required RETURN clause |
| 834 | if query.return_clause.items.is_empty() { |
| 835 | errors.push(ValidationError { |
| 836 | message: "Query must have at least one item in RETURN clause".to_string(), |
| 837 | location: None, |
| 838 | error_type: ValidationErrorType::Structural, |
| 839 | }); |
| 840 | } |
| 841 | } |
| 842 | |
| 843 | fn validate_return_query_structure(query: &ReturnQuery, errors: &mut Vec<ValidationError>) { |
| 844 | // Check for required RETURN clause items |
no test coverage detected