Upgrading asyncpg 0.11 to 0.12
Review needed0.11.0 → 0.12.0New5Changed1Fixed8
Review neededUpgrade verdict
1 behavior change.
In plain terms
- Interval values are now decoded the same way psycopg2 does it.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
async method Connection.set_type_codec(typename, *, schema=…, encoder, decoder, binary=…) → async method Connection.set_type_codec(typename, *, schema=…, encoder, decoder, binary=…, format=…) - added:
async method Connection.reset_type_codec(typename, *, schema=…) - added:
method Connection.add_log_listener(callback) - added:
method Connection.remove_log_listener(callback)
- changed:
class PostgresWarning(Warning, _base.PostgresMessage) → class PostgresWarning(_base.PostgresLogMessage, Warning) - added:
class GeneratedAlwaysError(SyntaxOrAccessError) - added:
class SequenceGeneratorLimitExceededError(DataError) - added:
class UnsafeNewEnumValueUsageError(ObjectNotInPrerequisiteStateError) - added:
field GeneratedAlwaysError.sqlstate - added:
field SequenceGeneratorLimitExceededError.sqlstate - added:
field UnsafeNewEnumValueUsageError.sqlstate