ó L5Xc@s{ddlmZmZmZmZmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZeƒdZ[dZdddddde!dd„Z"dZ#d Z$d Z%d Z&d Z'd Z(dZ)eeeee"eeeee e e e e eeeeeeeeeeeeeegZ*dS(i(tWarningtByteat DataErrort DatabaseErrortInterfaceErrortProgrammingErrortErrortOperationalErrortIntegrityErrort InternalErrortNotSupportedErrortArrayContentNotHomogenousErrortArrayContentEmptyErrort!ArrayDimensionsNotConsistentErrortArrayContentNotSupportedErrortutct ConnectiontCursortBinarytDatet DateFromTickstTimet TimeFromTickst TimestamptTimestampFromTickstBINARYtInterval(t get_versionstversionsMathieu Fenniakt localhosti8c Kst||||||||ƒS(s Creates a connection to a PostgreSQL database. This function is part of the `DBAPI 2.0 specification `_; however, the arguments of the function are not defined by the specification. :param user: The username to connect to the PostgreSQL server with. If this is not provided, pg8000 looks first for the PGUSER then the USER environment variables. 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. :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( tuserthostt unix_socktporttdatabasetpasswordtsslttimeouttkwargs((sMc:\users\saunak\appdata\local\temp\pip-build-difb2t\pg8000\pg8000\__init__.pytconnect*s<s2.0itformatii¤iZiN(+tcoreRRRRRRRRRR R R R R RRRRRRRRRRRRRt_versionRt __version__t __author__tNonetFalseR'tapilevelt threadsafetyt paramstyletSTRINGtNUMBERtDATETIMEtROWIDt__all__(((sMc:\users\saunak\appdata\local\temp\pip-build-difb2t\pg8000\pg8000\__init__.pyts(¬ =