Skip to content

enable dunder operators for filters (column__<op>=<value>)#396

Open
miraculixx wants to merge 1 commit intopudo:masterfrom
miraculixx:enable-filter-kwarg-ops
Open

enable dunder operators for filters (column__<op>=<value>)#396
miraculixx wants to merge 1 commit intopudo:masterfrom
miraculixx:enable-filter-kwarg-ops

Conversation

@miraculixx
Copy link

@miraculixx miraculixx commented May 17, 2022

This allows to specify multiple filters for the same column.

General syntax

Updates table.find(*_clauses, **kwargs) such that kwargs can be specified as { 'column__<op>': value }

Example

# height >= 20 AND height <= 50
table.find({'height__gte': 20, 'height__lte: 50'}

Relates to

#213

- specify as { 'column__<op>`: value }
@miraculixx miraculixx force-pushed the enable-filter-kwarg-ops branch 2 times, most recently from 698b99e to eb2e744 Compare May 17, 2022 14:22
@miraculixx miraculixx changed the title enable multiple AND filters on the same column enable dunder operators for filters (column__<op>=<value>) Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments