Your IP : 216.73.216.86


Current Path : /lib/fm-agent/dependencies/pg8000/__pycache__/
Upload File :
Current File : //lib/fm-agent/dependencies/pg8000/__pycache__/__init__.cpython-36.pyc

3

q��i
�@s�ddlmZmZmZmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZe�dZ[dZdd	d
�Z dZ!dZ"d
Z#dZ$dZ%dZ&dZ'eeeee eeeee	e
eee
eeeeeeeeeeeeeegZ(dS)�)�Warning�Bytea�	DataError�
DatabaseError�InterfaceError�ProgrammingError�Error�OperationalError�IntegrityError�
InternalError�NotSupportedError�ArrayContentNotHomogenousError�ArrayContentEmptyError�!ArrayDimensionsNotConsistentError�ArrayContentNotSupportedError�utc�
Connection�Cursor�Binary�Date�
DateFromTicks�Time�
TimeFromTicks�	Timestamp�TimestampFromTicks�BINARY�Interval)�get_versions�versionzMathieu FenniakN�	localhost�8Fc		Kst||||||||�S)aZ	Creates a connection to a PostgreSQL database.

    This function is part of the `DBAPI 2.0 specification
    <http://www.python.org/dev/peps/pep-0249/>`_; however, the arguments of the
    function are not defined by the specification.

    :param user:
        The username to connect to the PostgreSQL server with.

        If your server character encoding is not ``ascii`` or ``utf8``, then
        you need to provide ``user`` as bytes, eg.
        ``"my_name".encode('EUC-JP')``.

    :keyword host:
        The hostname of the PostgreSQL server to connect with.  Providing this
        parameter is necessary for TCP/IP connections.  One of either ``host``
        or ``unix_sock`` must be provided. The default is ``localhost``.

    :keyword unix_sock:
        The path to the UNIX socket to access the database through, for
        example, ``'/tmp/.s.PGSQL.5432'``.  One of either ``host`` or
        ``unix_sock`` must be provided.

    :keyword port:
        The TCP/IP port of the PostgreSQL server instance.  This parameter
        defaults to ``5432``, the registered common port of PostgreSQL TCP/IP
        servers.

    :keyword database:
        The name of the database instance to connect with.  This parameter is
        optional; if omitted, the PostgreSQL server will assume the database
        name is the same as the username.

        If your server character encoding is not ``ascii`` or ``utf8``, then
        you need to provide ``database`` as bytes, eg.
        ``"my_db".encode('EUC-JP')``.

    :keyword password:
        The user password to connect to the server with.  This parameter is
        optional; if omitted and the database server requests password-based
        authentication, the connection will fail to open.  If this parameter
        is provided but not requested by the server, no error will occur.

        If your server character encoding is not ``ascii`` or ``utf8``, then
        you need to provide ``user`` as bytes, eg.
        ``"my_password".encode('EUC-JP')``.

    :keyword ssl:
        Use SSL encryption for TCP/IP sockets if ``True``.  Defaults to
        ``False``.

    :keyword timeout:
        Only used with Python 3, this is the time in seconds before the
        connection to the database will time out. The default is ``None`` which
        means no timeout.

    :rtype:
        A :class:`Connection` object.
    )r)	�user�host�	unix_sock�port�database�password�ssl�timeout�kwargs�r*�1/usr/lib/fm-agent/dependencies/pg8000/__init__.py�connect*s>r,z2.0��formatii�iZ�)NrNr NNFN))Zcorerrrrrrrr	r
rrr
rrrrrrrrrrrrrrr�_versionr�__version__�
__author__r,ZapilevelZthreadsafetyZ
paramstyle�STRING�NUMBERZDATETIMEZROWID�__all__r*r*r*r+�<module>s(t

?