Skip to content

Releases: tarsil/saffier

Version 0.8.0

26 Apr 14:44
Compare
Choose a tag to compare

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 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 document added
  • Nested queries using related_name

Version 0.7.4

24 Apr 12:12
dc28f54
Compare
Choose a tag to compare

Fixed

  • Removed nested_asyncio causing infinite loops.

Version 0.7.3

23 Apr 17:08
Compare
Choose a tag to compare

Added

  • postgresql Typo in requirement installation.

Version 0.7.2

21 Apr 14:54
Compare
Choose a tag to compare

Added

  • db_schema - Added Registry objects of the metadata.

Version 0.7.1

21 Apr 14:30
Compare
Choose a tag to compare

Fixed

  • Lifespan event on shell returning async manager.

Version 0.7.0

21 Apr 13:46
Compare
Choose a tag to compare

Changed

  • Renamed saffier-admin to saffier.
  • Deprecate saffier-admin. Now you can simply call saffier 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 and ptpython for shell access via saffier.

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 with nest_asyncio.

Version 0.6.1

11 Apr 13:06
6690299
Compare
Choose a tag to compare

Fixed

  • UUIDField generations with Alembic.

Version 0.6.0

05 Apr 17:10
1516689
Compare
Choose a tag to compare

Added

  • Support for SQLAlchemy 2.

Changed

  • Moved from databases to its fork databasez and updated internal references.
  • DatabaseClient is now being directly used from Databasez test client.

Fixed

  • Updated requirements.

Version 0.5.0

03 Apr 13:17
Compare
Choose a tag to compare

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

Version 0.4.0

20 Mar 10:21
1ffecd0
Compare
Choose a tag to compare

Changed

  • Fixed mypy typing in the codebase #26
  • Updated pyproject.toml requirements #26

Added

  • UniqueConstraint object for the unique_together #29
  • UniqueConstraint documentation #29