Releases: MagicStack/asyncpg
v0.12.0
New Features
-
Implement
as_dict()
method forPostgresMessage
.
(by @vitaly-burovoy in 90725f1) -
Add API for receiving log messages
connection.add_log_listener()
.
(by @vitaly-burovoy and @1st1 in 1b1893d and f072f88 for #144) -
Add support for "tuple" exchange format for codec overrides.
(by @elprans in 0453243 and d27dda7) -
Implement binary format codec for numeric type.
(by @elprans in a5413eb for #157)
Bug Fixes
-
Fix boundary checks for integers.
(by @vitaly-burovoy in e082910 and dfcf135) -
Fix handling of
NULL
s in copy_records_to_table().
(by @elprans in 991b1ae for #153) -
Raise an error when a binary
COPY FROM
is attempted w/o appropriate codec.
(by @elprans in 7aac14e for #157) -
Fix
Record.items()
to support duplicate keys. See #28 for details.
(by @1st1 in 39b390c for #28) -
Fix
Record.keys()
to correctly return duplicate keys. See #28.
(by @1st1 in b06114d for #28) -
Call notifications listeners using
loop.call_soon()
.
(by @1st1 in 83d08bd) -
Make
PoolConnectionProxy
more dynamic. Fixes #155.
(by @1st1 in 6ca1f28 for #155) -
Make sure
set_type_codec()
overrides core codec for all formats.
(by @elprans in 9c32b86 for #140) -
New severity "V" field as "severity_en" attribute.
(by @vitaly-burovoy in 35bce5a) -
Make interval decoding logic match that of psycopg2.
(by @elprans in 6b48443 for #150)
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'