In theory, we don't need to reflect the schema and use that to dynamically validate each query. We could generate a query validator from the schema at compile-time. This would in theory be more efficient, but I'm not sure if it makes enough difference to warrant the complexity. It would be fun to find out, in any case.
In theory, we don't need to reflect the schema and use that to dynamically validate each query. We could generate a query validator from the schema at compile-time. This would in theory be more efficient, but I'm not sure if it makes enough difference to warrant the complexity. It would be fun to find out, in any case.