You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we allow Table objects to contain arbitrary fields/methods or not?
Currently we throw an exception when an unexpected field is encountered in the QueryBuilderFactory macro. Alternatively, we could just ignore these fields.
If we do want to be strict and only allow fields that translate to scope values, it would be nice if this checking happened at definition time and not when calling from(...). Ideally such that IDEs highlight the specific values in the object that are invalid. Could we somehow do this with macros? It would be cool if we could have a "custom case object", i.e. something like table object MyTable instead of case object MyTable extends Table
The text was updated successfully, but these errors were encountered:
Should we allow Table objects to contain arbitrary fields/methods or not?
Currently we throw an exception when an unexpected field is encountered in the
QueryBuilderFactory
macro. Alternatively, we could just ignore these fields.If we do want to be strict and only allow fields that translate to scope values, it would be nice if this checking happened at definition time and not when calling
from(...)
. Ideally such that IDEs highlight the specific values in the object that are invalid. Could we somehow do this with macros? It would be cool if we could have a "custom case object", i.e. something liketable object MyTable
instead ofcase object MyTable extends Table
The text was updated successfully, but these errors were encountered: