-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Many conditions can become more readable with some syntactic sugar.
Add on boolean :
.where_col( |a| a.is_active.is_true()) ).where_col( |a| a.is_admin.is_false()) )Add on optional:
.where_col( |a| a.address_id.is_none()) ) # or is_null ?.where_col( |a| a.address_id.is_some()) ) # or is_not_null ?To inverse any condition
.where_col( |a| Not( a.day.in_list('Monday','Tuesday') ) )
// or :
.where_col( |a| a.day.not().in_list('Monday','Tuesday') ) Whate do you think about all theses examples? Do you think that some of them are useful?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels