Releases: aipartnerup/sqlalchemy-session-proxy
Releases · aipartnerup/sqlalchemy-session-proxy
Release 0.3.0
Changed
- Bump version to 0.3.0 in
pyproject.tomland__init__.py. - Improved and expanded documentation in
README.mdfor clarity and completeness. - Minor code improvements and bugfix for the
querymethod inSqlalchemySessionProxy(fixed argument unpacking for sync sessions).
Fixed
- Fixed a bug where the
querymethod did not properly unpack arguments for synchronous sessions.
Release 0.2.0
Added
- Added
querymethod for legacy ORM queries (sync/async). - Added
scalarmethod for executing statements and returning a single scalar result (sync/async). - Added
run_syncmethod to allow running synchronous functions in async context (AsyncSession only). - Updated README.md to document new methods and clarify usage and import paths.
Release 0.1.0
Added
- Initial release of
sqlalchemy-session-proxy. - Unified proxy for both synchronous (
Session) and asynchronous (AsyncSession) SQLAlchemy sessions. - Automatic detection and dispatch for sync/async session methods.
- Proxy pattern: forwards all attribute and method calls to the underlying session.
- Supports core session methods:
add,add_all,commit,rollback,close,flush,merge,delete,get,get_one,execute,scalars,refresh,expire,expire_all,expunge,expunge_all,is_modified,in_transaction,in_nested_transaction, and more. - Full type hints for better IDE support and static analysis.