/usr/lib64/python2.6/site-packages/MySQLdb
NameSizeModeActions
constants/-0755rm
connections.py117770644editdlrm
connections.pyc130250644editdlrm
converters.py53120644editdlrm
converters.pyc69680644editdlrm
cursors.py182760644editdlrm
cursors.pyc215310644editdlrm
release.py1060644editdlrm
release.pyc3190644editdlrm
times.py34880644editdlrm
times.pyc49740644editdlrm
__init__.py32290644editdlrm
__init__.pyc44100644editdlrm
Edit: /usr/lib64/python2.6/site-packages/MySQLdb/connections.pyc (13025B)
Ñò ͤ¨Uc@s¾dZddklZddklZlZlZlZlZl Z l Z l Z l Z l Z ddkZddkZddkZd„ZeidƒZd„Zdeifd „ƒYZdS( s This module implements connections for MySQLdb. Presently there is only one class: Connection. Others are unlikely. However, you might want to make your own subclasses. In most cases, you will probably override Connection.default_cursor with a non-standard Cursor class. iÿÿÿÿ(tcursors( tWarningtErrortInterfaceErrort DataErrort DatabaseErrortOperationalErrortIntegrityErrort InternalErrortNotSupportedErrortProgrammingErrorNcCsJ||f}|o|ii|ƒn|ii|ƒ~~||‚dS(s, If cursor is not None, (errorclass, errorvalue) is appended to cursor.messages; otherwise it is appended to connection.messages. Then errorclass is raised with errorvalue as the value. You can override this with your own error handler by assigning it to the instance. N(tmessagestappend(t connectiontcursort errorclasst errorvalueterror((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pytdefaulterrorhandlers s^(\d+)cCs.ti|ƒ}|ot|idƒƒSdS(sšReturns the leading numeric part of a string. >>> numeric_part("20-alpha") 20 >>> numeric_part("foo") >>> numeric_part("16b") 16 iN(tre_numeric_parttmatchtinttgrouptNone(tstm((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyt numeric_part(s t ConnectioncBsÖeZdZeiZd„Zd„Zd d„Z d„Z d„Z d„Z d„Z eeidƒp d „Znd „Zd „Zd „ZeZeZeZeZeZeZeZeZeZeZeZ RS(s MySQL Database Connection Objectcsddkl}l}ddkl}ddkl}|iƒ}d|jo|d}n|}h} xS|iƒD]E\} } t | t ƒot | t ƒo| | | stY      @     3C    !  cCs:t|ƒ}|iƒ|jotii||ƒndS(N(tbooltget_autocommitRCR R((R]ton((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyR(ðs cCs|p|i|ƒS(sÔ Create a cursor on which queries may be performed. The optional cursorclass parameter is used to create the Cursor. By default, self.cursorclass=cursors.Cursor is used. (R!(R]R!((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyRõs cCs(|iƒo|idƒn|iƒS(NtBEGIN(RjtqueryR(R]((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyt __enter__s cCs#|o|iƒn |iƒdS(N(trollbacktcommit(R]texctvaluettb((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyt__exit__scCs|i||iƒS(s If o is a single object, returns an SQL literal as a string. If o is a non-string sequence, the items of the sequence are converted and returned as a sequence. Non-standard. For internal use; do not use this in your applications. (tescapeRL(R]to((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyR. s cCs1ddkl}|dtdƒ|idƒdS(s„Explicitly begin a connection. Non-standard. DEPRECATED: Will be removed in 1.3. Use an SQL BEGIN statement instead.iÿÿÿÿ(twarns2begin() is non-standard and will be removed in 1.3iRlN(twarningsRwtDeprecationWarningRm(R]Rw((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pytbegins t warning_countcCs@ddkl}|iƒ}|o||iƒdƒSdSdS(spReturn the number of warnings generated from the last query. This is derived from the info() method.iÿÿÿÿ(tatoiiN(tstringR|tinfoRE(R]R|R~((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyR{#s  cCs»|djo d}n|}|iƒ|jooytt|ƒi|ƒWqŸtj oB|idjotdƒ‚n|id|ƒ|iƒqŸXn||i _ ||i _ dS( s÷Set the connection character set to charset. The character set can only be changed in MySQL-4.1 and newer. If you try to change the character set from the current value in an older version, NotSupportedError will be raised.tutf8mb4tutf8iis server is too old to set charsets SET NAMES %sN(ii( RORHRRPtAttributeErrorRNR Rmt store_resultR4R"R1(R]R"t py_charset((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyRP-s   cCs?|idjotdƒ‚n|id|ƒ|iƒdS(sNSet the connection sql_mode. See MySQL documentation for legal values.iis!server is too old to set sql_modesSET SESSION sql_mode='%s'N(ii(RNR RmR‚(R]R%((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyRQAscCsA|idjodS|idƒ|iƒ}|idƒ}|S(sæReturn detailed information about warnings as a sequence of tuples of (Level, Code, Message). This is only supported in MySQL-4.1 and up. If your server is an earlier version, an empty sequence is returned.iis SHOW WARNINGSi(ii((RNRmR‚t fetch_row(R]trRx((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyt show_warningsIs   N(!t__name__t __module__t__doc__RtCursorR>RIR(RRRnRtR.RzthasattrRCR R{RPRQR†RRRRRRRRR R Rt errorhandler(((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pyR8s2  ²       (R‰tMySQLdbRt_mysql_exceptionsRRRRRRRRR R RWRCtreRtcompileRRR R(((s9/usr/lib64/python2.6/site-packages/MySQLdb/connections.pytsF