~james-w/ubuntu/lucid/psycopg2/precise-backport

« back to all changes in this revision

Viewing changes to doc/html/_sources/module.txt

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella, Jakub Wilk, Fabio Tranchitella
  • Date: 2011-06-19 18:25:53 UTC
  • mfrom: (5.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110619182553-uye7z0g5ewab98px
Tags: 2.4.2-1
[ Jakub Wilk ]
* Add Debian Python Modules Team to Uploaders.

[ Fabio Tranchitella ]
* New upstream release.
* debian/watch: updated, use pypi.
* debian/control, debian/rules: switched to dh_python2.
* debian/control: bumped Standard-Version to 3.9.2, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    The full list of available parameters is:
32
32
    
33
 
    - `dbname` -- the database name (only in dsn string)
34
 
    - `database` -- the database name (only as keyword argument)
35
 
    - `user` -- user name used to authenticate
36
 
    - `password` -- password used to authenticate
37
 
    - `host` -- database host address (defaults to UNIX socket if not provided)
38
 
    - `port` -- connection port number (defaults to 5432 if not provided)
39
 
    - `sslmode` -- `SSL TCP/IP negotiation`__ mode
 
33
    - `!dbname` -- the database name (only in dsn string)
 
34
    - `!database` -- the database name (only as keyword argument)
 
35
    - `!user` -- user name used to authenticate
 
36
    - `!password` -- password used to authenticate
 
37
    - `!host` -- database host address (defaults to UNIX socket if not provided)
 
38
    - `!port` -- connection port number (defaults to 5432 if not provided)
 
39
    - `!sslmode` -- `SSL TCP/IP negotiation`__ mode
40
40
 
41
 
    .. __: http://www.postgresql.org/docs/8.4/static/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS
 
41
    .. __: http://www.postgresql.org/docs/9.0/static/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS
42
42
 
43
43
    Using the *connection_factory* parameter a different class or
44
44
    connections factory can be specified. It should be a callable object
87
87
.. exception:: Warning 
88
88
            
89
89
    Exception raised for important warnings like data truncations while
90
 
    inserting, etc. It is a subclass of the Python |StandardError|_.
 
90
    inserting, etc. It is a subclass of the Python `~exceptions.StandardError`.
91
91
            
92
92
.. exception:: Error 
93
93
 
94
94
    Exception that is the base class of all other error exceptions. You can
95
 
    use this to catch all errors with one single ``except`` statement. Warnings
 
95
    use this to catch all errors with one single `!except` statement. Warnings
96
96
    are not considered errors and thus not use this class as base. It
97
 
    is a subclass of the Python |StandardError|_.
 
97
    is a subclass of the Python `!StandardError`.
98
98
 
99
99
    .. attribute:: pgerror
100
100
 
101
101
        String representing the error message returned by the backend,
102
 
        ``None`` if not available.
 
102
        `!None` if not available.
103
103
 
104
104
    .. attribute:: pgcode
105
105
 
106
 
        String representing the error code returned by the backend, ``None``
 
106
        String representing the error code returned by the backend, `!None`
107
107
        if not available.  The `~psycopg2.errorcodes` module contains
108
108
        symbolic constants representing PostgreSQL error codes.
109
109
 
197
197
 
198
198
.. parsed-literal::
199
199
 
200
 
    |StandardError|
 
200
    `!StandardError`
201
201
    \|__ `Warning`
202
202
    \|__ `Error`
203
203
        \|__ `InterfaceError`
212
212
            \|__ `NotSupportedError`
213
213
 
214
214
 
215
 
.. |StandardError| replace:: `!StandardError`
216
 
.. _StandardError: http://docs.python.org/library/exceptions.html#exceptions.StandardError
217
 
 
218
215
 
219
216
.. _type-objects-and-constructors:
220
217