Releases: tarsil/saffier
Releases · tarsil/saffier
Version 0.8.0
Changed
- Updated relationships document with more examples regarding
multiple foreign key declarations.
Added
contains
method to queryset allowing to query if a given model or reflected model exists in the
queryset.related_name
is now supported onForeignKey
allowing transverse queries.- Allow reverse queries using nested fields.
on_update
for ForeignKey and OneToOne fields- Multiple ForeignKeys to the same table is now possible.
- Related Name document added
- Nested queries using related_name
Version 0.7.4
Fixed
- Removed
nested_asyncio
causing infinite loops.
Version 0.7.3
Added
postgresql
Typo in requirement installation.
Version 0.7.2
Added
db_schema
- Added Registry objects of the metadata.
Version 0.7.1
Fixed
Lifespan
event on shell returning async manager.
Version 0.7.0
Changed
- Renamed
saffier-admin
tosaffier
. - Deprecate
saffier-admin
. Now you can simply callsaffier
with the same commands
as before.
Added
- New
shell
command that allows interactive shell with saffier models. - New
SAFFIER_SETTINGS_MODULE
allowing to create and pass specific and unique settings
to any saffier instance. - Added support for
ipython
andptpython
for shell access viasaffier
.
Fixed
- Linting and formatting issues with Ruff.
- Bug with ReflectModel. A ReflectModel might not need all the fields from the database and the mapping should reflect that.
run_until_complete
issues fixed withnest_asyncio
.
Version 0.6.1
Fixed
UUIDField
generations with Alembic.
Version 0.6.0
Added
- Support for SQLAlchemy 2.
Changed
- Moved from
databases
to its forkdatabasez
and updated internal references. DatabaseClient
is now being directly used from Databasez test client.
Fixed
- Updated requirements.
Version 0.5.0
Changed
- Updated requirements to support Esmerald >= 1.1.0 for testing.
- Updated testing and docs requirements.
Added
- Metaclass option to support database tables reflection. Allowing reading tables from existing database. 35
- Documentation regarding the reflection of tables. #37
Fixed
- Typos in documentation