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
Currently we depends on this list of types to differentiate "built in" type from database enum. I think this is hard to maintain and adding new "built in" type requires changing two places. Adding a derive attribute to TypeFilter and append the new type to the list below.
Why?
Currently we depends on this list of types to differentiate "built in" type from database enum. I think this is hard to maintain and adding new "built in" type requires changing two places. Adding a derive attribute to
TypeFilter
and append the new type to the list below.seaography/derive/src/filter.rs
Lines 53 to 98 in 39ced31
Solution?
I think we could introduce a new trait with getter method for all the "built in" types and database enums.
Then, we can write this as
#ident: Option<FilterTrait<Ty = #type_ident>>
seaography/derive/src/filter.rs
Lines 96 to 98 in 39ced31
Thoughts? @karatakis
The text was updated successfully, but these errors were encountered: