Changelog

0.18.0 (2026-03-13)

Features

  • docs: add Sphinx documentation and deploy workflow (#56) (596de09)

Bug Fixes

  • deprecation warnings (#52) (7291f18)

  • include post_save in the same fixture session (#54) (c92c675)

0.17.0 (2026-03-13)

Features

0.15.1 (2026-02-16)

Bug Fixes

0.15.0 (2026-02-04)

Features

0.14.1 (2026-01-14)

Bug Fixes

  • work with latest sqlmodel which drops v1 (79920c6)

Documentation

  • add pydantic v2 compatibility notes to typeid_patch.py (7d3f43a)

  • add warning log for missing session in ActiveModelFactory (317dd22)

0.14.0 (2025-10-16)

Features

  • query_wrapper: add efficient exists() query method with tests (257452f)

  • query: add sample() to query wrapper for random row selection (d35800c)

Bug Fixes

  • handle tuples and Optionals in JSON mixin (1aa1018)

Documentation

  • clarify global_session usage in complex test scenarios (a131b0f)

  • fastapi-sqla (2183686)

0.13.0 (2025-09-05)

Features

  • rewritten lifecycle hooks that actually work (af4e6fe)

0.12.0 (2025-09-03)

Features

  • add ActiveModelFactory helpers for session management and typeid generation (a6b9915)

  • add base SQLModel and ActiveModel polyfactory factories (12a5e1d)

  • add one_or_none method to BaseModel for safe queries (7574777)

  • add pytest db_session fixture (22d2ad8)

  • add scalar method to QueryWrapper and return from delete (3d68097)

  • add SQLAlchemy protocol generation script (6e4524e)

  • add test_session context manager for test DB interactions (d7a8112)

  • export test_session from activemodel.pytest (9bf692a)

  • pytest: omit truncation tables, truncation db fixture (f20f17e)

  • support engine options (9b00ecd)

  • support passing session to global_session context manager (567708a)

Bug Fixes

  • add return type to ActiveModelFactory save method (96f4a0a)

  • add ruff link + check on autogenerated types (91ae5ea)

  • allow reentrant global_session when using same session reference (d4d7949)

  • clarify duplicate TypeID prefix error message (a73c221)

  • prevent factories from setting timestamp fields by default (5d78745)

Documentation

  • added related issue (3c47e60)

  • clarify session management and querying in usage section (cdadaff)

  • connection pool tip (5d92b99)

  • fix JSONB usage in example and clarify imports in README (386e69d)

  • improve base model tablename docstring (de98cbc)

  • pytest: clarify ActiveModelFactory.save behavior with relationships and truncation (6ee2cbe)

  • typeid: clarify exception on invalid UUID string (bf13a7e)

  • update TODOs for testing, constraints, and unique key suggestions (6010f8f)

0.11.0 (2025-04-05)

Features

  • add pydantic patch for TypeID schema serialization (767726e)

  • add typeid prefix to db field comments (34e4574)

  • render TypeIDType in plain old pydantic models (8aa0a4d)

Bug Fixes

  • typing on upsert properly returns self (8965113)

Documentation

  • add advanced SQLAlchemy tips to README.md (c624ac0)

  • update comments in session_manager to clarify usage (e657a2e)

0.10.0 (2025-04-01)

Features

  • add upsert method for PostgreSQL support in BaseModel (d639de6)

  • prevent nested global sessions and add test (3aca2cc)

  • return upserted model and enhance upsert tests (df2359a)

Bug Fixes

  • use sa_column default instead of sqlmodel (37e299d)

Documentation

  • enhance docstrings in BaseModel for clarity (12a5dee)

0.9.0 (2025-03-26)

Features

  • add flag_modified and modified_fields to BaseModel (3059903)

  • add refresh method to BaseModel for database sync (59be3bb)

  • add robust record retrieval methods to BaseModel (d15b5a1)

Bug Fixes

  • use set_committed_value in PydanticJSONMixin (5446204)

Documentation

  • update TODOs and correct typeid return value (52b2514)

0.8.0 (2025-03-18)

Features

  • add BaseModel.where method and update test cases (9fe4c5a)

  • add primary_key_field (947a410)

  • log start of database transaction in tests (ac90d6f)

  • reload json fields when record is reloaded from db (c013082)

Bug Fixes

  • yield session object in global_session function (47b33cc)

Documentation

  • add comments to clarify SessionManager use and config (e73561b)

  • update comments and README with additional examples and info (209ee36)

  • update README with setup instructions and SQLModel tips (f2520b5)

0.7.0 (2025-02-08)

Features

  • migrations: add test to validate autogenerated migrations (03e0511)

Bug Fixes

  • filter migration files to include only Python files in test (76f6723)

  • make another_with_index optional in ExampleRecord (2ace729)

Documentation

  • enhance README with alembic integration instructions (a7ac734)

  • improve Alembic integration guidance and resources (1206278)

0.6.0 (2025-02-08)

Features

  • add active model meta functionality with comments (4180df7)

  • add Celery encoder for TypeID serialization (416b04a)

  • add data initialization on model load (00a90ce)

  • add field comments to SQLModel metadata (c32bb9a)

  • add initial TypeIDType import to init.py (8594dff)

  • add JSON serialization for Pydantic models (1213f2f)

  • add playground script for interactive database testing (fbe419a)

  • add soft deletion mixin for model handling (2e24e26)

  • add TypeID validation and refactor TypeIDType (5a2a49e)

  • add utility to import all SQLModel subclasses (e850016)

  • enforce unique non-empty prefixes in TypeIDMixin (a167293)

  • enhance foreign key handling and add validation (61d5849)

  • enhance query handling and testing in ORM (363c0dd)

  • enhance schema handling with new json schema generation (3ba47b6)

  • enhance session management and JSON serialization (c74804b)

  • handle dict annotations in PydanticJSONMixin (085c6a9)

  • integrate field description as SQL comment (cd98fe4)

  • integrate table comment extraction for models (b7b9722)

  • integrate TypeID with Pydantic schema handling (ab7ded9)

  • patch FieldInfo for comment support (e85d154)

  • test: enhance ORM tests and introduce QueryWrapper test (be98abb)

Bug Fixes

  • attempt at using a context manager, no joy (409ed6d)

  • return True upon successful delete operation (444a5f5)

  • support lots of UUID inputs (783a9fe)

Documentation

  • add example queries to the README file (f3e878c)

  • add new controller project (c10bc29)

  • add usage example for Appointment model in README (7d9ac70)

  • expand README with setup and usage sections (c471f5f)

  • update README with TypeID integration details (6112888)

0.5.0 (2024-11-28)

Features

  • add methods for finding or creating records in model (f1fd2f2)

0.4.0 (2024-11-26)

Bug Fixes

  • update uv version to 0.5.4 (1d77c39)

Features

  • add database truncation functionality for tests (177abf9)

  • add FastAPISessionMaker for SQLAlchemy session management (b80f045)

  • add mixins for timestamps and TypeID handling (51a6128)

  • add python-decouple-typed as a dependency (d495ad4)

  • add typeid-python dependency to project requirements (998762f)

  • implement database reset methods for tests (9cec29d)

  • lots of stuff :) (0510d20)

0.3.0 (2024-11-20)

Features

  • add inspiration section to README and update TODO (b11fb09)

0.2.0 (2024-11-16)

Bug Fixes

  • update uv version and rename test file location (9389fd2)

Features

  • add Redis and Postgres services to CI workflow (b9cb0ba)

  • automate tablename generation from camelCase (193f839)

  • enhance project description and keywords in config (10c5707)