Skip to content

v0.12.0

Choose a tag to compare

@iloveitaly iloveitaly released this 03 Sep 23:16

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)