aritmos / crabql

Crustacean certified SQL query creation in Rust
MIT License
0 stars 0 forks source link

Add `ExprChecker` to decouple the `Schema` from the `Checker` trait #2

Closed aritmos closed 3 months ago

aritmos commented 3 months ago

Having the Schema directly implement the Checker trait is not a reasonable partition of functionality. The Schema itself should be a plain object holding the database's data, and a wrapping type, such as ExprChecker should instead handle the validation process.