feat: partial incorporation of custom predicates into statement and operation structures in middleware (#84)
* Add custom predicates to middleware Statement enum * Add custom op enum variant and wildcard matching procedures
This commit is contained in:
parent
538353a701
commit
05c21ebe6a
6 changed files with 119 additions and 36 deletions
|
|
@ -82,7 +82,13 @@ impl TryFrom<Statement> for middleware::Statement {
|
|||
|
||||
impl From<middleware::Statement> for Statement {
|
||||
fn from(s: middleware::Statement) -> Self {
|
||||
Statement(s.code(), s.args().into_iter().map(|arg| arg).collect())
|
||||
match s.code() {
|
||||
middleware::Predicate::Native(c) => {
|
||||
Statement(c, s.args().into_iter().map(|arg| arg).collect())
|
||||
}
|
||||
// TODO: Custom statements
|
||||
_ => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue