Foundation for highly scalable distributed web application with `Rustlang` for apps, `Typescript` and Kubernetes for Infra
0
stars
0
forks
source link
Surreal-orm: implement cond! macro for idiomatic expressive conditional #524
Closed
Oyelowo closed 1 year ago
uses the builder pattern under the hood.
This is what the query builder looks like: cond!((city IS "Prince Edward Island") AND (city IS "NewFoundland") OR (city LIKE "Toronto"));
The macro should generate this: cond(city.is("Prince Edward Island")) .and(city.is("NewFoundland")) .or(city.like("Toronto")),