Sqla-utils

Latest version: v0.6.1

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

Scan your dependencies

Page 1 of 4

0.6.1

Added

- Support Python 3.12.

Changed

- `assert_rows_equal()`: Improve assertion message when the number of rows
doesn't match.

0.6.0

- Add a `check_existence` argument to `DBObjectBase.delete_one()` and
`DBObjectBase.delete_by_*()` methods.
- Fix a race condition when using `DBObjectBase.delete_one()` or one of the
`delete_by_*()` methods.

0.5.0

- Make compatible with SQLAlchemy 2.0.
- This changes some type annotations to make them compatible with
SQLAlchemy 2.0.

0.4.1

- Fix various `DBFixture` methods.
- Fix various SQLAlchemy 2.0 compatibility issues in `DBFixture`.
- Update the `RowType` type alias.

0.4.0

- Prepare `DBFixture` for SQLAlchemy 2.0.
- Wrap all SQL calls in explicit transactions to avoid
SQLAlchemy future compatibility warnings.
- Encapsulate all SQL strings into `text()` to avoid
SQLAlchemy future compatibility warnings.
- Bind parameters in the first argument to `execute_sql()`,
`select_sql()`, and `select_sql_one_row()` are now specified using
the `:arg` format. Arguments are passed as a mapping as second
argument.
- Fix the example in the docstring for `DatabaseBuilder`.

0.3.4

- `Transaction.execute()` and `Transaction.scalar()`: Wrap SQL strings in
`text()` to avoid SQLAlchemy future compatibility warnings.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.