Changeset 875 for trunk/docs


Ignore:
Timestamp:
Jul 2, 2016, 4:46:03 AM (3 years ago)
Author:
cito
Message:

Let connect() pass any other connection parameters

Location:
trunk/docs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/changelog.rst

    r872 r875  
    77  of the primary key if both are provided. This restores backward compatibility
    88  with PyGreSQL 4.x and allows updating the primary key itself if an OID exists.
    9 - Made C extension compatible with MSVC 9 again (needed for Python 2 on Windws).
     9- The connect() function of the DB API 2.0 module now accepts additional keyword
     10  parameters such as "application_name" which will be passed on to PostgreSQL.
     11- Made C extension compatible with MSVC 9 again (this was needed to compile for
     12  Python 2 on Windows).
    1013
    1114Version 5.0 (2016-03-20)
  • trunk/docs/contents/pgdb/module.rst

    r817 r875  
    1111---------------------------------------
    1212
    13 .. function:: connect([dsn], [user], [password], [host], [database])
     13.. function:: connect([dsn], [user], [password], [host], [database], [**kwargs])
    1414
    1515    Return a new connection to the database
     
    2020    :param str host: the hostname of the database
    2121    :param database: the name of the database
     22    :param dict kwargs: other connection parameters
    2223    :returns: a connection object
    2324    :rtype: :class:`Connection`
     
    3132arguments, which always take precedence. The *host* can also contain a port
    3233if specified in the format ``'host:port'``. In the *opt* part of the *dsn*
    33 you can pass command-line options to the server.
     34you can pass command-line options to the server. You can pass additional
     35connection parameters using the optional *kwargs* keyword arguments.
    3436
    3537Example::
  • trunk/docs/index.rst

    r831 r875  
    1 .. PyGreSQL index page without toc (for use with cloud theme)
     1.. PyGreSQL index page with toc (for use without cloud theme)
    22
    33Welcome to PyGreSQL
     
    55
    66.. toctree::
    7     :hidden:
     7    :maxdepth: 2
    88
     9    about
    910    copyright
    1011    announce
     
    1213    contents/index
    1314    community/index
    14 
    15 .. include:: about.txt
Note: See TracChangeset for help on using the changeset viewer.