Files
serveur-d-authentification/venv/lib/python3.10/site-packages/MySQLdb/__pycache__/converters.cpython-310.pyc

51 lines
3.6 KiB
Plaintext
Raw Normal View History

o
,S<>j<00>@s<>dZddlmZddlmZddlmZmZddlm Z m
Z
m Z m Z m Z mZmZmZddlmZddlZed<07>ZzejZWn eyIejZYnwdd <09>Zd
d <0B>Zd d <0A>Zdd<0F>Zdd<11>Zdd<13>Zdd<15>Zdd<17>Zej e!fde"ffZ#ie$e<1A>e%e<1B>ee<1C>ee<1F>e&e<18>e e<1D>e
e <0B>e e <0A>e'e<19>ee<1E>ej(e$<24>ej)e$<24>ej*e$<24>ej+e%<25>ej,e%<25>ej-e<02>ej.e<02>ej/e$ej0e$ej1e$ej2eej3eej4eej5eej6e!ej7e!ej8e!ej9e!ej:e!ej;e!ej<e!ej=e!i<0F>Z>dS)a<>MySQLdb type conversion module
This module handles all the type conversions for MySQL. If the default
type conversions aren't what you need, you can make your own. The
dictionary conversions maps some kind of type to a conversion function
which returns the corresponding value:
Key: FIELD_TYPE.* (from MySQLdb.constants)
Conversion function:
Arguments: string
Returns: Python object
Key: Python type object (from types) or class
Conversion function:
Arguments: Python object of indicated type or class AND
conversion dictionary
Returns: SQL literal value
Notes: Most conversion functions can ignore the dictionary, but
it is a required parameter. It is necessary for converting
things like sequences and instances.
Don't modify conversions if you can avoid it. Instead, make copies
(with the copy() method), modify the copies, and then pass them to
MySQL.connect().
<EFBFBD>)<01>Decimal<61><01>string_literal)<02>
FIELD_TYPE<EFBFBD>FLAG)<08>Date<74> DateTimeType<70>DateTime2literal<61>DateTimeDeltaType<70>DateTimeDelta2literal<61>DateTime_or_None<6E>TimeDelta_or_None<6E> Date_or_None)<01>ProgrammingErrorNcCs |rdSdS)N<>1<>0<><00><02>s<>drr<00>u/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/MySQLdb/converters.py<70>Bool2Str;s rcCstd<01>|<00><01>S)N<>,)r<00>joinrrrr<00>Set2Str?srcC<00>t|<00>S)z*Convert something into a string via str().)<01>strrrrr<00> Thing2StrDsrcCs0t|<00>}|dvrtd|<00><01>d|vr|d7}|S)N)<03>infz-inf<6E>nanz%s can not be used with MySQL<51>e<>e0)<02>reprr)<03>orrrrr<00> Float2StrIs  r$cCsdS)zConvert None to NULL.sNULLr<00>r#rrrr<00> None2NULLRsr&cCr)z<>Convert something into a SQL string literal. If using
MySQL-3.23 or newer, string_literal() is a method of the
_mysql.MYSQL object, and this function will be overridden with
that method when the connection is created.rr%rrr<00> Thing2LiteralWsr'cCs
t|d<01>S)N<>f)<01>formatr%rrr<00>Decimal2Literal_s
r*cCst|<00><01>|<01>S)N)r'<00>tostringr%rrr<00> array2Strcsr,)?<3F>__doc__<5F>decimalr<00>MySQLdb._mysqlr<00>MySQLdb.constantsrr<00> MySQLdb.timesrrr r
r r r r<00>MySQLdb._exceptionsr<00>array<61>type<70>NoneType<70> ArrayType<70>AttributeErrorrrrr$r&r'r*r,<00>BINARY<52>bytesr<00> _bytes_or_str<74>int<6E>float<61>bool<6F>set<65>TINY<4E>SHORT<52>LONG<4E>FLOAT<41>DOUBLE<4C>DECIMAL<41>
NEWDECIMAL<EFBFBD>LONGLONG<4E>INT24<32>YEAR<41> TIMESTAMP<4D>DATETIME<4D>TIME<4D>DATE<54> TINY_BLOB<4F> MEDIUM_BLOB<4F> LONG_BLOB<4F>BLOB<4F>STRING<4E>
VAR_STRING<EFBFBD>VARCHAR<41>JSON<4F> conversionsrrrr<00><module>s<> (

 
<02> <02><02><02><02><02><02><02><02> <02>
<02> <02> <02> <02><02><02><02><02>
<EFBFBD>