Releases: kougen/py-repositories
Releases · kougen/py-repositories
v2.1.1
What's Changed
- Ability to get the content type from the FieldTypes class by @joshika39 in #12
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- added delete tests by @joshika39 in #7
- Feature/9 add unique field support by @joshika39 in #10
Other notes
The previously used FilterField
was removed and replaced by the new: Filter
, FilterCondition
and FilterCombination
from pyrepositories import Filter, FilterCondition, FilterTypes, FilterCombination
single_filter = Filter([
FilterCondition('name', 'Mary', FilterTypes.CONTAINS),
])
filters = [
Filter([
FilterCondition('name', 'Doe', FilterTypes.CONTAINS),
FilterCondition('email', '[email protected]', FilterTypes.EQUAL)
], FilterCombination.AND),
Filter([
FilterCondition('name', 'Mary', FilterTypes.CONTAINS),
])
]
# Assume you already have a data source
for user in datasource.get_by_filter('users', single_filter):
print(user)
for user in datasource.get_by_filters('users', filters):
print(user)
Full Changelog: v2.0.3...v2.1.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0
What's Changed
- Auto increment and Multi type id support by @joshika39 in #4
- Feature/add drop table and table clearing by @joshika39 in #5
Other notes
- Minor performance changes
Full Changelog: v1.0.1...v2.0.0
v1.0.1
v1.0.0
What's Changed
- Added minor fixes by @joshika39 in #2
New Contributors
- @joshika39 made their first contribution in #2
Full Changelog: https://github.com/kougen/py-repositories/commits/v1.0.0