Converters¶
See Custom conversions for how
conv= is used.
Conversions between Python values and SQL.
Parameters are interpolated into the query text (paramstyle = "format"),
which is what SQLAlchemy's MySQL dialects expect. The work happens in the
native module; escape_string, literal and interpolate are thin
wrappers for direct use and tests.
conversions is the default conv= mapping, in MySQLdb's format: column
types (FIELD_TYPE) to decoders and Python types to encoders. Passing it,
or a copy with a few entries changed, keeps every other column on the native
fast path: only entries that differ from it are called from Python.