aiopg

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

BSD-2-CLAUSE License

Downloads
540.9K
Stars
1.4K
Committers
62

Bot releases are hidden (Show)

aiopg - aiopg 0.5.0

Published by asvetlov almost 10 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).
aiopg - Release 0.4.1

Published by asvetlov about 10 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)

aiopg - Release 0.4.0

Published by asvetlov about 10 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
aiopg - aiopg 0.2.3 has been released

Published by asvetlov over 10 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