Skip to content

v0.7.0

Choose a tag to compare

@SpaceShaman SpaceShaman released this 30 Jul 20:57
· 242 commits to master since this release

The latest version introduces the DBField function to extend Pydantic's Field for more customized database operations. Here are the main changes:

New Features

  • Created the DBField function in fields.py to extend Pydantic's Field.
  • Replaced Field with DBField in the codebase to support custom on_delete and unique options.

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
  • Read all data from the database
  • Filter data and retrieve multiple records
    • Equal
    • Not equal
    • Greater than
    • Greater than or equal
    • Less than
    • Less than or equal
    • Contains
    • Pagination
  • Update table schema
  • Custom primary key
  • Bulk operations (save, update, delete)
  • Migrations

Full Changelog: v0.6.1...v0.7.0