Upgrading asyncpg 0.9 to 0.10
Breaking0.9.0 → 0.10.1Breaking1New10Changed5Fixed7
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The timeout argument must now be passed by name when calling executemany.
Must act 1 item needs code or config changes
What you must change
Breaking1
Makes timeout arg of Connection.executemany() a keyword-only arg.
Connection.executemany()timeoutAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
export Record
- changed:
async function connect(dsn=…, *, host=…, port=…, user=…, password=…, database=…, loop=…, timeout=…, statement_cache_size=…, command_timeout=…, **opts) → async function connect(dsn=…, *, host=…, port=…, user=…, password=…, database=…, loop=…, timeout=…, statement_cache_size=…, max_cached_statement_lifetime=…, max_cacheable_statement_size=…, command_timeout=…, ssl=…, __connection_class__=…, **opts) - changed:
async method Connection.executemany(command: str, args, timeout: float=…) → async method Connection.executemany(command: str, args, _timeout: float=…, **kw) - changed:
constructor Connection(protocol, transport, loop, addr, opts, *, statement_cache_size, command_timeout) → constructor Connection(protocol, transport, loop, addr, opts, *, statement_cache_size, command_timeout, max_cached_statement_lifetime, max_cacheable_statement_size, ssl_context) - added:
class ConnectionMeta(type) - added:
variable ServerCapabilities
- added:
class InvalidCachedStatementError(FeatureNotSupportedError)
- changed:
constructor Pool(*connect_args, min_size, max_size, max_queries, setup, init, loop, **connect_kwargs) → constructor Pool(*connect_args, min_size, max_size, max_queries, max_inactive_connection_lifetime, setup, init, loop, **connect_kwargs) - changed:
function create_pool(dsn=…, *, min_size=…, max_size=…, max_queries=…, setup=…, init=…, loop=…, **connect_kwargs) → function create_pool(dsn=…, *, min_size=…, max_size=…, max_queries=…, max_inactive_connection_lifetime=…, setup=…, init=…, loop=…, **connect_kwargs) - added:
async method Pool.execute(query: str, *args, timeout: float=…) -> str - added:
async method Pool.executemany(command: str, args, *, timeout: float=…) - added:
async method Pool.fetch(query, *args, timeout=…) -> list - added:
async method Pool.fetchrow(query, *args, timeout=…) - added:
async method Pool.fetchval(query, *args, column=…, timeout=…) - added:
async method PoolConnectionHolder.acquire() -> PoolConnectionProxy - added:
async method PoolConnectionHolder.close() - added:
async method PoolConnectionHolder.connect() - added:
async method PoolConnectionHolder.release() - added:
class PoolConnectionHolder - added:
class PoolConnectionProxy(connection._ConnectionProxy) - added:
class PoolConnectionProxyMeta(type) - added:
constructor PoolConnectionHolder(pool, *, connect_args, connect_kwargs, max_queries, setup, init, max_inactive_time) - added:
constructor PoolConnectionProxy(holder: PoolConnectionHolder, con: connection.Connection) - added:
constructor PoolConnectionProxyMeta(name, bases, dct, *, wrap=…) - added:
method PoolConnectionHolder.terminate()
- added:
export NO_TIMEOUT - added:
export Record