Upgrading PyMySQL 0.10 to 1
Unknown0.10.1 → 1.2.3Deprecated3New2Changed2Other4
Fetching 15 releases from GitHub…1 / 15
UnknownUpgrade verdict
DepDelta is still reading the notes for 14 of 15 releases, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act 3 items need code or config changes
Requires Python >=3.9 from 1.1.3 (none stated before).
Deprecations to plan for
Deprecated3
Deprecate db and passwd again.
dbpasswdDeprecate reconnect in Connection.ping().
reconnectConnection.ping()Deprecate Connection.set_charset() at runtime and document warning behavior.
Connection.set_charset()API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
export escape_dict - removed:
export escape_sequence - removed:
export escape_string - removed:
function Connect(*args, **kwargs) - added:
export connections - added:
variable Connect
- changed:
class Charset(object) → class Charset - changed:
constructor Charset(id, name, collation, is_default) → constructor Charset(id, name, collation, is_default=…)
- removed:
class LoadLocalFile(object) - removed:
constructor LoadLocalFile(filename, connection) - removed:
function lenenc_int(i) - removed:
function pack_int24(n) - removed:
method Connection.escape_string(s) - removed:
method LoadLocalFile.send_data() - changed:
class Connection(object) → class Connection - changed:
class MySQLResult(object) → class MySQLResult - changed:
constructor Connection(host=…, user=…, password=…, database=…, port=…, unix_socket=…, charset=…, sql_mode=…, read_default_file=…, conv=…, use_unicode=…, client_flag=…, cursorclass=…, init_command=…, connect_timeout=…, ssl=…, read_default_group=…, compress=…, named_pipe=…, autocommit=…, db=…, passwd=…, local_infile=…, max_allowed_packet=…, defer_connect=…, auth_plugin_map=…, read_timeout=…, write_… → constructor Connection(*, user=…, password=…, host=…, database=…, unix_socket=…, port=…, charset=…, collation=…, sql_mode=…, read_default_file=…, conv=…, use_unicode=…, client_flag=…, cursorclass=…, init_command=…, connect_timeout=…, read_default_group=…, autocommit=…, local_infile=…, max_allowed_packet=…, defer_connect=…, auth_plugin_map=…, read_timeout=…, write_timeout=…, bind_address=…, binary… - changed:
method Connection.escape(obj, mapping=…) → method Connection.escape(obj, mapping=…) -> str - changed:
method Connection.literal(obj) → method Connection.literal(obj) -> str - added:
method Connection.set_character_set(charset, collation=…)
- added:
variable CR_COMPRESSION_WRONGLY_CONFIGURED - added:
variable CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED - added:
variable CR_DNS_SRV_LOOKUP_FAILED - added:
variable CR_FILE_NAME_TOO_LONG - added:
variable CR_INSECURE_API_ERR - added:
variable CR_INVALID_FACTOR_NO - added:
variable CR_KERBEROS_USER_NOT_FOUND - added:
variable CR_LOAD_DATA_LOCAL_INFILE_REALPATH_FAIL - added:
variable CR_LOAD_DATA_LOCAL_INFILE_REJECTED - added:
variable CR_MANDATORY_TRACKER_NOT_FOUND - added:
variable CR_SSL_FIPS_MODE_ERR
- added:
variable QUERY_TIMEOUT - added:
variable STATEMENT_TIMEOUT
- removed:
function escape_bytes_prefixed(value, mapping=…) - removed:
function escape_dict(val, charset, mapping=…) - removed:
function escape_object(value, mapping=…) - removed:
function escape_unicode(value, mapping=…) - removed:
variable escape_string - changed:
function escape_bytes(value, mapping=…) → function escape_bytes(value, mapping=…) -> str - changed:
function escape_item(val, charset, mapping=…) → function escape_item(val, charset=…, mapping=…) - changed:
function escape_sequence(val, charset, mapping=…) → function escape_sequence(val, charset=…, mapping=…) - changed:
function escape_set(val, charset, mapping=…) → function escape_set(val, charset=…, mapping=…) - changed:
function escape_str(value, mapping=…) → function escape_str(value, mapping=…) -> str - added:
function escape_not_supported(val, charset=…, mapping=…) - added:
variable escape_bytes_prefixed - added:
variable escape_dict
- removed:
field Cursor.DataError - removed:
field Cursor.DatabaseError - removed:
field Cursor.Error - removed:
field Cursor.IntegrityError - removed:
field Cursor.InterfaceError - removed:
field Cursor.InternalError - removed:
field Cursor.NotSupportedError - removed:
field Cursor.OperationalError - removed:
field Cursor.ProgrammingError - removed:
field Cursor.Warning - changed:
class Cursor(object) → class Cursor - changed:
class DictCursorMixin(object) → class DictCursorMixin - changed:
method Cursor.mogrify(query, args=…) → method Cursor.mogrify(query, args=…) -> str
- added:
constructor Error(*args, sqlstate=…)
- added:
method Parser.optionxform(key)
- changed:
class EOFPacketWrapper(object) → class EOFPacketWrapper - changed:
class LoadLocalPacketWrapper(object) → class LoadLocalPacketWrapper - changed:
class MysqlPacket(object) → class MysqlPacket - changed:
class OKPacketWrapper(object) → class OKPacketWrapper
- removed:
function byte2int(b) - removed:
function int2byte(i)