MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/connections.pyo
mò
å9óAc@sŠdZdkZdklZlZlZlZlZlZl	Z	l
Z
lZlZdk
Z
dkZd„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.

N(
sWarningsErrorsInterfaceErrors	DataErrors
DatabaseErrorsOperationalErrorsIntegrityErrors
InternalErrorsNotSupportedErrorsProgrammingErrorcCsD||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(t
errorclasst
errorvalueterrortcursortmessagestappendt
connection(RRRRR((t7/usr/lib/python2.4/site-packages/MySQLdb/connections.pytdefaulterrorhandlerst
ConnectioncBs—tZdZeiZd„Zed„Zd„Z	e
eidƒp
d„Z
neZeZeZeZeZeZeZeZeZeZeZRS(s MySQL Database Connection ObjectcOsëdkl}l}dkl}dk}dkl}
|i	ƒ}|idƒo|d|d<}n|i	ƒ|d<}|idƒo|d|_|d=n
|i|_|iddƒ}|idƒo|d=ntt|ƒi||Ž|iƒid	ƒd|_|oM|
|ƒd
„}	|	||i<|	||i<||iidd|	fƒnd|
|ƒd„}
d|
|ƒd
„}|
|i!|i"<||i!|i#<|i$|i%@|_&|i&o|i'dƒng|_(dS(sy

        Create a connection to the database. It is strongly recommended
        that you only use keyword parameters. Consult the MySQL C API
        documentation for more information.

        host
          string, host to connect
          
        user
          string, user to connect as

        passwd
          string, password to use

        db
          string, database to use

        port
          integer, TCP/IP port to connect to

        unix_socket
          string, location of unix_socket to use

        conv
          conversion dictionary, see MySQLdb.converters

        connect_time
          number of seconds to wait before the connection attempt
          fails.

        compress
          if set, compression is enabled

        named_pipe
          if set, a named pipe is used to connect (Windows only)

        init_command
          command which is run once the connection is created

        read_default_file
          file from which default client values are read

        read_default_group
          configuration group to use from the default file

        cursorclass
          class object, used to create cursors (keyword only)

        use_unicode
          If True, text-like columns are returned as unicode objects
          using the connection's character set.  Otherwise, text-like
          columns are returned as strings.  columns are returned as
          normal strings. Unicode objects will always be encoded to
          the connection's character set regardless of this setting.

        client_flag
          integer, flags to use or 0
          (see MySQL docs or constants/CLIENTS.py)

        ssl
          dictionary or mapping, contains SSL connection parameters;
          see the MySQL documentation for more details
          (mysql_ssl_set()).  If this is set, and the client does not
          support SSL, UnsupportedError will be raised.

        local_infile
          integer, non-zero enables LOAD LOCAL INFILE; zero disables
    
        There are a number of undocumented, non-standard methods. See the
        documentation for the MySQL C API for some hints on what they do.

        (sCLIENTs
FIELD_TYPE(sconversionsN(sproxytconvtcursorclasstuse_unicodeit_cCs|i|iƒS(N(tstdecodetselftcharset(RR((Rtu‹siÿÿÿÿcCs
|i|ƒS(N(Rtstring_literaltobj(RtdummyR((RR‘scCs|i|i|iƒƒS(N(RtliteralRtencodeR(RRR((Rtunicode_literal”s()t	constantstCLIENTt
FIELD_TYPEt
converterstconversionsttypestweakreftproxytkwargstcopytkwargs2thas_keyR
RRtdefault_cursortgetRtsuperR	t__init__targstcharacter_set_nametsplitRRtSTRINGt
VAR_STRINGtBLOBtinserttNoneRRt	convertert
StringTypetUnicodeTypetserver_capabilitiestTRANSACTIONSt_transactionalt
autocommitR(RR)R!RRR
R#RRRR RRR((RR(*s>I
	



!
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.

        N(RR(RR((RRŸ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.

        N(RtescapetoR1(RR9((RRªs
t
warning_countcCs@dkl}|iƒ}|o||iƒdƒSndSdS(spReturn the number of warnings generated from the
            last query. This is derived from the info() method.(satoiiÿÿÿÿiN(tstringtatoiRtinfoR+(RR=R<((RR:¹s
(t__name__t
__module__t__doc__tcursorstCursorR%R(R0RRthasattrt_mysqlRR:tWarningtErrortInterfaceErrort
DatabaseErrort	DataErrortOperationalErrortIntegrityErrort
InternalErrortProgrammingErrortNotSupportedErrorRterrorhandler(((RR	$s$		u	

(R@RAt_mysql_exceptionsRERFRGRIRHRJRKRLRNRMRRDRRR	(RIRRGRLRKRDR	RERJRARFRRMRNRH((Rt?s
	C	

Anon7 - 2021