Skip to content

v0.4.1

Choose a tag to compare

@SpaceShaman SpaceShaman released this 25 Jul 11:15
· 288 commits to master since this release

The latest version includes minor updates, primarily focusing on aligning on_delete parameter values with Pydantic field specifications. Here are the main changes:

Code Refactoring

  • Refactored the _get_on_delete_action method in models.py to handle the correct mapping of on_delete parameter values for foreign key actions.

Tests

  • Updated on_delete parameter values in test functions in test_delete.py to match the correct values for Pydantic Field class.

Documentation

  • Updated README.md to reflect the correct on_delete parameter values in the Post model fields.

In summary, this small update ensures the correct handling and documentation of on_delete parameter values.

Features and Roadmap

  • Define table schema using Pydantic models
  • Basic CRUD operations
    • Save data to the database
    • Read data from the database
    • Update data in the database
    • Delete data from the database
  • Relationships between tables
    • One-to-many
      • Create a tables with a foreign key
      • Save data with a foreign key
      • Read data with a foreign key
      • Update data with a foreign key
      • Delete data with a foreign key
        • Cascade
        • Set null
        • Restrict
        • Set default
        • No action
    • One-to-one
    • Many-to-many
  • Unique constraints
  • Remove table
  • Update table schema
  • Filter data and retrieve multiple records
  • Custom primary key
  • Bulk operations (save, update, delete)
  • Migrations

Full Changelog: v0.4.0...v0.4.1