- deprecate search_exception
- simplify signature of repository methods
- simplify signature of load_repository
- remove dependency with py
- correct the search on tinydb when a value is None
- correct the search on tinydb when a value is None
- clean the Entity TypeVar definitions to EntityT
- Implement the ADR 005 deprecation
- avoid duplication of code in repo._get when there are many entities
- repo.get() now accepts an
attribute
different thanid_
- add
repo.empty()
to remove all entities from the repository
- add the is_closed property to the repo
- use Sequence as type hint for repo.add
- use Sequence as type hint for repo.add
- correct the signature of repo.add to support list of entities
- correct the signature of repo.add to support list of entities
- return empty desired_values in search and all
- return empty desired_values in search and all
- remove defined values when doing repo.get
- prevent search from raising exceptions when no entity is found
- remove userwarning on the add method
- correct merge errors
- propagate the merge attribute when adding a list of entities
- support AnyHttpUrl as id_ type
- allow merging of entities
- rename model name property from
_model_name
tomodel_name
- correct ordering of entities that both have an integer type
- allow comparison of entities with different
id_
types
- sort the result of
repo.all()
- select pdm path editable backed
- remove the python_paths that is no longer needed
- define the log_level attribute of the config object
- ci: deprecate dependabot as pdm is not supported yet
- change package management to pdm
- mark deprecation warnings as errors
- create the load_config entrypoint function
- ci: add the workflow_dispatch event handler
- add close method to the data repositories
- make cache entries immutable
- add a repository cache
- remove unused code
- organize tests in classes
- allow the addition of lists of entities
- make string search case insensitive
- add file repositories
- make Entity hash unique per model
- make tinydb search return only entities of the asked model
- allow faker repository to search for bool properties
- make tinydb search process a dictionary with many fields well
- correct tinydb search by many fields
- add method return the entity with the autoincremented id
- add a warning if load_repository is called with wrong database_url
- don't search on list attributes that are not strings
- partially support search in attributes of type List
- improve the type hints
- make entity models optional arguments of the repo methods
- create the _model_not_found and _build_models abstract repo methods
- bump version of deepdiff
- support back the string IDs
- add a ci job to test that the program is installable
- add the last and first methods to the repositories.
- use entity typevar for abstract repository definition
- add _model_name attribute to entities
- make entity id definition optional
- add first and last methods to the repositories
- We're temporarily dropping support for
str
id_
attributes.
- add TiniDB repository
- make add idempotent for Fake and Pypika repositories
- add support for regular expressions in the
search
method
- ignore the B608 sql injection warning
- drop support for python 3.6
- use generic typevars to define the entities of the repositories
- replace ID with id_
- bump version to be able to upload to pypi
- fake: implement the first version of the FakeRepository
- pypika: implement the first version of the PypikaRepository
- create initial project structure