Releases: MagicStack/asyncpg
v0.11.0
Backwards Incompatible Changes
-
Make
timeout
param ofexecutemany()
a keyword-only kwarg.
(by @1st1 in bb326fc) -
Prohibit passing non-string instances as text arguments to queries.
(by @elprans in ccc5f7a) -
connect()
andcreate_pool()
no longer accept arbitrary
keyword arguments for server settings. Use newserver_settings
argument for that.
New Features
Bug Fixes
-
Refactor args parsing and config management for
connect()
and
create_pool()
.
(by @1st1 in f280a56) -
support postgres-xl version
(by songjy in ffb8959) -
Fix erroneous codec cache invalidation on internal codec aliasing.
(by @elprans in df64f55 for #133) -
Fix potential segfault in text array decoder.
(by @elprans in bbd116b) -
Limit max number of arguments (closes #127).
(by @1st1 in 128910e for #127)
Documentation
0.10.1
New features
Bug fixes
0.10.0
New features
-
Add support for SSL connections.
(by @1st1 in 5836a8f for #25) -
Add
max_cached_statement_lifetime
parameter toasyncpg.connect()
.
(by @1st1 in 10955fd for #76) -
Add
max_inactive_connection_lifetime
parameter toasyncpg.create_pool()
.
(by @1st1 in a2935ae) -
Expose some of
Connection
methods directly on the Pool object.
(by @1st1 in 1b3a847 for #39) -
Allow overriding codecs for builtin types on a connection.
(by @elprans in 71de129 for #73) -
Add support for the text I/O fallback for arrays of unknown types.
(by @elprans in a2e53ab for #82) -
Make the
Record
type available asasyncpg.Record
.
(by @elprans in d42608f for #93) -
pool: Track connections and prohibit using them after release.
(by @1st1 in 3bf6103) -
Rollback any active transactions in
Connection.reset()
.
(by @1st1 in 0d19d96) -
Invalidate statement cache on schema changes affecting statement result.
(by @elprans in 749d857 for #72) -
Use anonymous prepared statements when the cache is off.
(by @1st1 in a3e9cb4 for #76) -
Raise an error if connection is used after being closed.
(by @1st1 in 5ddd7fc) -
Add Amazon Redshift detection.
(by @elprans in 4fdc1db for #29) -
Add rudimentary server capability detection.
(by @elprans in e8bb3dc for #87)
Bug fixes
-
Handle exceptions in generators passed to
Connection.executemany()
.
(by @elprans in 8d17ecc for #85) -
Shield
Pool.release()
from task cancellation.
(by @elprans in 537c8c9 for #97) -
Fix inclusion of
DETAIL
andHINT
in Postgres messages.
(by @elprans in 2e346c1) -
Implement conistent handling of timeouts.
(by @elprans in 1674dec) -
Make
timeout
arg ofConnection.executemany()
a keyword-only arg.
(by @1st1 in 424760d)
v0.8.4
v0.8.3
Elvis Pranskevichus (9):
- Increase pool.acquire timeout in tests to avoid failures on Travis
- Silence a few -Wmaybe-uninitialized warnings
- Increase test timeouts
- Attempt to fix spurious failures of test_auth_reject on Windows
- Use ssize_t for buffer sizes consistently
- Add infrastructure for multiformat data codecs
- Implement text array decoder (#60)
- ci: Make sure wheel builds on macOS start from a clean slate (#61)
Vitaly Burovoy (3):
- Make TYPEMAP be stable and avoid extra endline at the end of pgtypes.pxi
- Make error message be the same as in the "_get_array_shape" function.
- Add codec tests for "aclitem[]" type
v0.8.1
Elvis Pranskevichus (7):
- Fix Connection.reset() on read-only connections (#48)
- Add compatibility with PostgreSQL server versions 9.1-9.3
- travis: Test on all available PostgreSQL versions
- travis: Also build on Python 3.6
- Fix setup.py metadata and README rst issues
- ci: Switch to staged release process
- travis: Fix documentation deploy on tagged builds (#52)
Lele Gaifax (1):
- Fix typo in API documentation
Yury Selivanov (2):
- cython: Make async def coroutines awaitable in cythonized coroutines
- connection: Fix waiter wakeup code in _cancel_current_command
v0.7.0
Chris Lamb (1):
- Fix parsing pg_ctl output in some locales
Elvis Pranskevichus (9):
- Fix building of wheels on macOS
- setup.py: Support --cython-directives properly
- Decode arrays as lists, handle arrays of composite types (#33)
- Ignore system and dropped attributes in composite types (#43)
- Fix handling of CIDR input to "inet" data type (#37)
- Implement the Connection.executemany() method (#36)
Yury Selivanov (3):
- Allow empty Record objects.
- cluster: Fix how settings args are passed to 'init'
- Enable 'setup.py test'
v0.6.0
v0.5.3
v0.5.2:
- More API is now properly documented; more examples. - Pool.acquire() can now be used with 'async with'. - create_pool() has a new argument - 'setup'. - New Connection.add_listener() and Connection.remove_listener() methods. - Record.__contains__. - Bug fixes.