Skip to content

v0.16.1 🚀 PostgreSQL Support Added!

Latest
Compare
Choose a tag to compare
@SpaceShaman SpaceShaman released this 12 Jan 10:22

This release introduces support for PostgreSQL as an alternative database, alongside improvements in flexibility and compatibility for database configuration.

New Features

  • Added support for PostgreSQL as a database option.
    • To enable PostgreSQL, you need to install the appropriate driver:
      pip install ORMagic[postgres]
    • Configure the database by setting the ORMAGIC_DATABASE_URL environment variable:
      ORMAGIC_DATABASE_URL=postgresql://user:password@localhost/dbname
    • Note: By default, ORMagic uses SQLite and requires no additional setup.

Refactoring

  • Introduced the Factory Method design pattern for managing database clients.
    This refactor improves code readability and scalability, enabling better support for multiple database backends.

Tests

  • Added comprehensive PostgreSQL testing for all existing test cases to ensure compatibility and reliability.
    Testing now covers both SQLite and PostgreSQL configurations.

This update brings significant improvements in database compatibility, internal code structure, and testing coverage, enabling developers to scale their applications with PostgreSQL. For any issues, refer to the documentation.

Full Changelog: v0.15.0...v0.16.1