Add a ResultSet.find() method
Bug #338255 reported by
James Henstridge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Fix Released
|
Undecided
|
James Henstridge |
Bug Description
It would be nice if ResultSet had a find() method that behaved similar to the one on bound ReferenceSets. That is:
1. takes a list of where conditions that are used in addition to whatever conditions are already in place, in essence narrowing an existing search.
2. returns a new ResultSet.
This would allow repeated filtering of result sets in a fashion similar to what Django allows, for instance.
Some things that we would need to be careful of:
* sliced result sets.
* set expressions (union, intersect, etc)
* aggregate queries (i.e. ones using group_by()).
* any of the above for finds on multiple tables.
Raising FeatureError for some of these might be a good starting point.
Related branches
lp:~jamesh/storm/resultset-find
- Jamu Kakar (community): Approve
- Thomas Herve (community): Approve
- Diff: 129 lines
Changed in storm: | |
assignee: | nobody → James Henstridge (jamesh) |
status: | New → In Progress |
Changed in storm: | |
milestone: | none → 0.15 |
Changed in storm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Feature merged to trunk as r316.