Aiopg Versions Save

aiopg is a library for accessing a PostgreSQL database from the asyncio

v0.5.0

9 years ago

Major release 0.5

Pool reimplemented to never exceed pool max size.

Added method to close/terminate pool and engine and wait for closing.

Full list of changes:

  • Add .terminate() to Pool and Engine
  • Reimplement connection pool (now pool size cannot be greater than pool.maxsize)
  • Add .close() and .wait_closed() to Pool and Engine
  • Add minsize, maxsize, size and freesize properties to sa.Engine
  • Support echo parameter for logging executed SQL commands
  • Connection.close() is not a coroutine (but we keep backward compatibility).

v0.4.1

9 years ago

Minor release.

  • Documentation updated

  • aiopg.cursor instances are iterable now, you can fetch SELECT results in the following way:

    yield from cur.execute("SELECT * FROM tbl") for item in cur: process_item(item)

v0.4.0

9 years ago

I proud to announce new aiopg release 0.4.0. This is major release, I highly recommend to switch on it.

The main features are:

  • support for JSON and HSTORE PostgreSQL types
  • accepting extended SqlAlchemy types (with proper conversions) as input parameter for SELECT/INSERT/UPDATE etc.
  • added timeouts for SQL queries

v0.2.3

9 years ago

This is bugfix release intended to fix a bug in connection pool implementation (see #14).

You can find the documentation here:

http://aiopg.readthedocs.org/en/0.2/

Latest version is also available on Pypi:

https://pypi.python.org/pypi/aiopg/0.2.3