Releases: dymmond/databasez
Releases · dymmond/databasez
Version 0.9.2
Added
- Expose customization hooks for disconnects, connects.
Fixed
- Testclient has issues with missing permissions.
- Lazy global connection.
Version 0.9.1
Added
- Expose customization hooks for execute result parsing for subclasses of sqlalchemy.
Fixed
execute_many
works now efficient and properly and returns autoincrement column ids.execute
returned not autoincrement id but defaults.
Version 0.9.0
Added
force_rollback
is now a descriptor returning an extensive ForceRollback object.- Setting True, False, None is now possible for overwriting the value/resetting to the initial value (None).
- Deleting it resets it to the initial value.
- Its trueness value evaluates to the current value, context-sensitive.
- It still can be used as a contextmanager for temporary overwrites.
Fixed
- Fixed refcount for global connections.
Changed
connect
/disconnect
calls are now refcounted. Nesting is now supported.- ACTIVE_TRANSACTIONS dict is not replaced anymore when initialized.
Version 0.8.5
Added
- Allow overwriting
force_rollback
when copying via passing Database as parameter.
Changed
- The
force_rollback
parameter is now None by default.
Fixed
- Fix typo in Testclient copying path.
Version 0.8.4
Added
- Provide
__copy__
method for Database, DatabaseBackend. - Database is now an allowed type for Database (used for copying). Same is true for the DatabaseTestClient subclass.
Fixed
- Speed of tests.
- DATABASE_CONFIG_URLS had passwords not properly unquoted.
Version 0.8.3
Added
- DatabaseTestClient has now an option for changing the test prefix.
Fixed
- DatabaseTestClient can now use the improvements in 0.8.0 too.
- DatabaseTestClient is now tested.
- Fix run_sync on Database objects.
Version 0.8.2
Fixed
- Cannot pass parameters to execute directly. Bulk_inserts not possible anymore.
0.8.1
Version 0.8.0
Added
batched_iterate
.jdbc
dialect to load nearly all jdbc drivers (note: many features won't work).dbapi2
dialect to load nearly all dbapi2 drivers (note: many features won't work).
Changed
- Use psycopg3 by default. Autoupgrade
postgres://
topostgres+psycopg://
. Note: this behavior differs from sqlalchemy which still uses psycopg2 by default. fetch_all
uses now iterate as fallback.hatch
is now used for release management, cleaning.- Use mariadb for tests instead of mysql (resource problems).
Removed
aiopg
support (no update for 2 years and better alternatives available).- Remove Makefile and other scripts.
- Own
run_sync
implementation. Use asyncio.run instead.
Version 0.7.2
Fixed
- Regression introduced by asyncio with
DatabaseTestClient