Sqlmodelservice

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 2

0.5.0

Changes:

- Added `Service.update_item()`.
- Added `safe_commit()` utility.
- Updated docs.
- Moved all service exceptions to the `errors` module. They can still be imported directly from `sqlmodelservice`.

0.4.3

Changes:

- Added new utility methods: `all()`, `one()`, and `one_or_none()`.
- Added new exception: `MultipleResultsFound` that can be raised by `one()`.
- `get_all()` is considered deprecated, use `all()` instead.
- The lib is now more flexible in terms of the required SQLModel version (`>=0.0.14,<0.1`)
- Added some more tests.

0.4.2

More `Service.select()` overloads.

0.4.1

Changes:

- Upgraded `Service.exec()` typing to accept `Select`s as well.

0.4.0

Features:

- `add_to_session()` now allows both creation and editing (there's now a required `operation` argument as well).
- There's a new `_apply_changes_to_item()` hook where updates are applied to a given database item.

0.3.0

Upgrade to Pydantic v2 and SQLModel 0.0.12.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.