Remove batch splitting system (#475)

* First pass at removing batch splitting

* Refactor to separate module loading from request parsing

* Consolidate module functionality

* Tidy up comments

* Use array of modules instead of HashMap

* Formatting

* Use module hashes when importing modules
This commit is contained in:
Rob Knight 2026-02-09 10:31:47 +01:00 committed by GitHub
parent 5dab8195b4
commit acab26e5c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 1425 additions and 1938 deletions

View file

@ -50,8 +50,8 @@ pub enum ValidationError {
span: Option<Span>,
},
#[error("Batch not found: {id}")]
BatchNotFound { id: String, span: Option<Span> },
#[error("Module not found: {name}")]
ModuleNotFound { name: String, span: Option<Span> },
#[error("Undefined predicate: {name}")]
UndefinedPredicate { name: String, span: Option<Span> },
@ -91,6 +91,18 @@ pub enum ValidationError {
#[error("Wildcard '{name}' collides with a predicate name")]
WildcardPredicateNameCollision { name: String },
#[error("Predicate definitions are not allowed in requests")]
PredicatesNotAllowedInRequest { span: Option<Span> },
#[error("REQUEST block is not allowed in modules")]
RequestNotAllowedInModule { span: Option<Span> },
#[error("Modules must contain at least one predicate definition")]
NoPredicatesInModule,
#[error("Requests must contain a REQUEST block")]
NoRequestBlock,
}
/// Lowering errors from frontend AST lowering to middleware