Saffier

Latest version: v1.4.1

Safety actively analyzes 642283 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

0.11.0

Added

- [`delclarative()`](https://saffier.tarsild.io/models.md#declarative-models) to the models, allowing generating model types of SQLAlchemy declarative base.
PR [58](https://github.com/tarsil/saffier/pull/58) by [tarsil](https://github.com/tarsil).

0.10.2

Added

- `comment` option for the fields. PR [57](https://github.com/tarsil/saffier/pull/57) by [tarsil](https://github.com/tarsil).

0.10.1

Changed

- Minor update of the base of databasez package. PR [56](https://github.com/tarsil/saffier/pull/56) by [tarsil](https://github.com/tarsil).

0.10.0

Changed

- Updated to the latest version of pydantic making sure all the fixes are in place.

0.9.0

Added

- Add protocols to Queryset.
- Add Protocols to Related names
- Support for the new [ManyToManyField](https://saffier.tarsild.io/fields.md#manytomanyfield)
- Documentation for [ManyToManyField](https://saffier.tarsild.io/queries/many-to-many.md)

0.8.0

Changed

- Updated [relationships](https://saffier.tarsild.io/relationships.md) 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 on `ForeignKey` 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](https://saffier.tarsild.io/queries/related-name.md) document added
- Nested queries using related_name

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.