saffier

The only ORM that you will ever need for python.

MIT License

Downloads
1.7K
Stars
58
Committers
4

Bot releases are hidden (Show)

saffier - Version 0.14.2

Published by tarsil over 1 year ago

Fixed

  • AsyncIO event loop blocking the reflection.
saffier - Version 0.14.1

Published by tarsil over 1 year ago

Fixed

  • Remove super init from Registry.
saffier - Version 0.14.0

Published by tarsil over 1 year ago

Changed

  • Update Saffier core to start using Pydantic 2.0 and improved
    performance.
saffier - Version 0.13.0

Published by tarsil over 1 year ago

Changed

  • fields are now imported in a different path. This is a breaking change. PR #62 by @tarsil

Before

from saffier import fields

Now

from saffier.db.models import fields

Added

  • Added server_default option for fields allowing to specify if the value should be generated from the DB and how to.
  • Added support for save() of the model. PR #62 by @tarsil
saffier - Version 0.12.0

Published by tarsil over 1 year ago

0.12.0

Added

  • New version of the declarative().
    PR #59 by @tarsil.
  • ManyToMany and OneToOne added as alternatives to ManyToManyField and OneToOneField.
    The latter will always exist but you can also import the ManyToMany and OneToOne as alternative
    instead.

Fixed

  • Registry now allowing the lru_caching to happen properly.
saffier - Version 0.11.0

Published by tarsil over 1 year ago

Added

saffier - Version 0.10.2

Published by tarsil over 1 year ago

Added

  • comment option for the fields. PR #57 by @tarsil.
saffier - Version 0.10.1

Published by tarsil over 1 year ago

0.10.1

Changed

  • Minor update of the base of databasez package. PR #56 by @tarsil.
saffier - Version 0.10.0

Published by tarsil over 1 year ago

Changed

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

Published by tarsil over 1 year ago

Added

saffier - Version 0.8.0

Published by tarsil over 1 year ago

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
saffier - Version 0.7.4

Published by tarsil over 1 year ago

Fixed

  • Removed nested_asyncio causing infinite loops.
saffier - Version 0.7.3

Published by tarsil over 1 year ago

Added

  • postgresql Typo in requirement installation.
saffier - Version 0.7.2

Published by tarsil over 1 year ago

Added

  • db_schema - Added Registry objects of the metadata.
saffier - Version 0.7.1

Published by tarsil over 1 year ago

Fixed

  • Lifespan event on shell returning async manager.
saffier - Version 0.7.0

Published by tarsil over 1 year ago

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.
saffier - Version 0.6.1

Published by tarsil over 1 year ago

Fixed

  • UUIDField generations with Alembic.
saffier - Version 0.6.0

Published by tarsil over 1 year ago

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.
saffier - Version 0.5.0

Published by tarsil over 1 year ago

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
saffier - Version 0.4.0

Published by tarsil over 1 year ago

Changed

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

Added

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