Skip to content

Releases: MagicStack/asyncpg

v0.11.0

11 May 21:58
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • Make timeout param of executemany() a keyword-only kwarg.
    (by @1st1 in bb326fc)

  • Prohibit passing non-string instances as text arguments to queries.
    (by @elprans in ccc5f7a)

  • connect() and create_pool() no longer accept arbitrary
    keyword arguments for server settings. Use new server_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

06 Apr 21:40
Compare
Choose a tag to compare

New features

  • Add new Connection parameter: max_cacheable_statement_size.
    (by @1st1 in b1f87eb for #115)

Bug fixes

0.10.0

04 Apr 18:50
v0.10.0
Compare
Choose a tag to compare

New features

  • Add support for SSL connections.
    (by @1st1 in 5836a8f for #25)

  • Add max_cached_statement_lifetime parameter to asyncpg.connect().
    (by @1st1 in 10955fd for #76)

  • Add max_inactive_connection_lifetime parameter to asyncpg.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 as asyncpg.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 and HINT in Postgres messages.
    (by @elprans in 2e346c1)

  • Implement conistent handling of timeouts.
    (by @elprans in 1674dec)

  • Make timeout arg of Connection.executemany() a keyword-only arg.
    (by @1st1 in 424760d)

v0.8.4

07 Jan 17:48
v0.8.4
Compare
Choose a tag to compare
asyncpg-0.8.4

v0.8.3

04 Jan 21:34
v0.8.3
Compare
Choose a tag to compare

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

22 Dec 17:40
v0.8.1
Compare
Choose a tag to compare

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

17 Nov 14:12
v0.7.0
Compare
Choose a tag to compare

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

20 Oct 16:29
v0.6.0
Compare
Choose a tag to compare

Elvis Pranskevichus (5):
Merge pull request #24 from johnkingsley/master
Make it possible to override cluster connection parameters
Move compilation logic to setup.py
Add Windows support (#31)
asyncpg v0.6.0

John Kingsley (1):
Fixed copy-and-paste error in Line type

v0.5.3

05 Aug 15:55
v0.5.3
Compare
Choose a tag to compare
  • Fix timestamp codec on 32-bit systems
  • Allow any non-trivial Container to be passed as an array argument
  • Fix pool connection failure when a password is present (#16)
  • Various portability and robustness improvements

v0.5.2:

26 Jul 23:53
Compare
Choose a tag to compare
- 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.