Skip to content

Releases: kougen/py-repositories

v2.1.1

06 Apr 15:56
042593b
Compare
Choose a tag to compare

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

01 Apr 18:40
add68e4
Compare
Choose a tag to compare

What's Changed

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

23 Mar 14:08
dd16301
Compare
Choose a tag to compare

Other notes

  • Finished filtering

Full Changelog: v2.0.2...v2.0.3

v2.0.2

23 Mar 13:36
99b9d13
Compare
Choose a tag to compare

Other notes

  • Filter improvements

Full Changelog: v2.0.1...v2.0.2

v2.0.1

23 Mar 13:14
8a84520
Compare
Choose a tag to compare

Other notes

  • Improved filtering

Full Changelog: v2.0.0...v2.0.1

v2.0.0

23 Mar 09:41
38db372
Compare
Choose a tag to compare

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

23 Mar 08:54
cbf152a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

23 Mar 08:41
44d2981
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/kougen/py-repositories/commits/v1.0.0