Saffier

Latest version: v1.4.2

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

Scan your dependencies

Page 3 of 8

1.1.0

Added

- Support for [`or_`, `and_` and `not_`](https://saffier.tarsild.io/queries/queries#saffier-style) for SQLAlchemy style queries and Edgy syntax sugar queries.

Changed

- `inspectdb` is now handled by an independent isolated called `InspectDB`.
- Updated internal support for `databasez` 0.7.0 and this fixes the URL parsing errors for complex passwords
caused by the `urlsplit`.

Fixed

- `server_default` does not raise a `FieldValidationError`.
- `server_default` added as validation for nullable.

!!! Warning
This could impact your migrations, so the advise would be to generate a new migration
after upgrading to the new version of Edgy to make sure the database reflects the proper
nullables/non-nullable fields.

1.0.1

Changed

- Add [API Reference](http://saffier.tarsild.io/references/).
- Update base requirements.

Fixed

- `Database` object docstring.

1.0.0

Added

- Support for Python 3.12

Changed

- Update base requirements.

0.18.0

Added

- New [Prefetch](https://saffier.tarsild.io/queries/prefetch.md) support allowing to simultaneously load nested data onto models.
- New [Signal](https://saffier.tarsild.io/signals.md) support allowing to "listen" to model events upon actions being triggered.

Changed

- Updated pydantic and alembic

0.17.1

Fixed

- DeclarativeModel generating internal mappings names was breaking for class objects.

0.17.0

Added

- Multi tenancy support by updating the registry and allowing to create the multi schema.
- Add new `using(schema=...)` and `using_with_db(database=..., schema=...)` to querysets.
- Add support for `create_schema` and `drop_schema` via registry.
- Add support to `get_default_schema` from the `registry.schema`.
- Documentation for [tenancy](https://saffier.tarsild.io/tenancy/saffier.md).
- Improved the documentation for [schemas](https://saffier.tarsild.io/registry.md#schemas).
- Added a new parameter `extra` to registry allowing to pass a Dict like object containing more database connections. This is an alternative to the registries.
- Improved documentation for [registry](https://saffier.tarsild.io/registry.md#extra) explaining how to use the extra parameters.
and query them.
- Added a new ConnectionConfig TypedDict for the registry extra.

Changed

- Update the `build` for `Model` and `ReflectModel` to allow passing the schema.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.