Uniform usage of DB API spelling.

This commit is contained in:
Daniele Varrazzo 2010-02-09 21:31:40 +00:00 committed by Federico Di Gregorio
parent 9955b2f32f
commit 3e66529864
7 changed files with 16 additions and 16 deletions

View File

@ -90,9 +90,9 @@ pygments_style = 'sphinx'
todo_include_todos = True
rst_epilog = """
.. |DBAPI 2.0| replace:: `DBAPI 2.0`_
.. |DBAPI| replace:: DB API 2.0
.. _DBAPI 2.0: http://www.python.org/dev/peps/pep-0249/
.. _DBAPI: http://www.python.org/dev/peps/pep-0249/
.. _transaction isolation level:
http://www.postgresql.org/docs/8.4/static/transaction-iso.html

View File

@ -59,7 +59,7 @@ The ``connection`` class
selected: see :meth:`connection.set_isolation_level()`).
The above methods are the only ones defined by the |DBAPI 2.0|_ protocol.
The above methods are the only ones defined by the |DBAPI|_ protocol.
The Psycopg connection objects exports the following additional methods
and attributes.

View File

@ -260,7 +260,7 @@ The ``cursor`` class
:exc:`ProgrammingError` is raised and the cursor position is not
changed.
.. todo:: dbapi says should have been IndexError...
.. todo:: DB API says should have been IndexError...
The method can be used both for client-side cursors and server-side
(named) cursors.
@ -276,7 +276,7 @@ The ``cursor`` class
a single row at a time. It may also be used in the implementation of
:meth:`executemany()`.
.. todo:: copied from dbapi: better specify what psycopg2 does with
.. todo:: copied from DB API: better specify what psycopg2 does with
arraysize
.. attribute:: rowcount
@ -290,7 +290,7 @@ The ``cursor`` class
determined by the interface.
.. note::
The |DBAPI 2.0|_ interface reserves to redefine the latter case to
The |DBAPI|_ interface reserves to redefine the latter case to
have the object return ``None`` instead of -1 in future versions
of the specification.

View File

@ -1,12 +1,12 @@
:mod:`psycopg2.extensions` -- Extensions to the DBAPI
=====================================================
:mod:`psycopg2.extensions` -- Extensions to the DB API
======================================================
.. sectionauthor:: Daniele Varrazzo <daniele.varrazzo@gmail.com>
.. module:: psycopg2.extensions
The module contains a few objects and function extending the minimum set of
functionalities defined by the |DBAPI 2.0|.
functionalities defined by the |DBAPI|.
.. class:: connection

View File

@ -5,7 +5,7 @@ Psycopg -- PostgreSQL database adapter for Python
.. sectionauthor:: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Psycopg is a PostgreSQL_ database adapter for the Python_ programming
language. Its main advantages are that it supports the full Python |DBAPI 2.0|
language. Its main advantages are that it supports the full Python |DBAPI|_
and it is thread safe (threads can share the connections). It was designed for
heavily multi-threaded applications that create and destroy lots of cursors and
make a conspicuous number of concurrent INSERTs or UPDATEs. The psycopg

View File

@ -5,7 +5,7 @@ The :mod:`psycopg2` module content
.. module:: psycopg2
The module interface respects the standard defined in the |DBAPI 2.0|.
The module interface respects the standard defined in the |DBAPI|_.
.. index::
single: Connection string
@ -68,7 +68,7 @@ The module interface respects the standard defined in the |DBAPI 2.0|.
Exceptions
----------
In compliance with the |DBAPI 2.0|, the module makes informations about errors
In compliance with the |DBAPI|, the module makes informations about errors
available through the following exceptions:
.. todo::
@ -168,9 +168,9 @@ This is the exception inheritance layout:
Type Objects and Constructors
-----------------------------
.. note:: This section is mostly copied verbatim from the |DBAPI 2.0|_
.. note:: This section is mostly copied verbatim from the |DBAPI|_
specification. While these objects are exposed in compliance to the
DBAPI, Psycopg offers very accurate tools to convert data between Python
DB API, Psycopg offers very accurate tools to convert data between Python
and PostgreSQL formats. See :ref:`adapting-new-types` and
:ref:`type-casting-from-sql-to-python`

View File

@ -7,7 +7,7 @@ Basic module usage
pair: Example; Usage
The basic Psycopg usage is common to all the database adapters implementing
the |DBAPI 2.0| protocol. Here is an interactive session showing some of the
the |DBAPI|_ protocol. Here is an interactive session showing some of the
basic commands::
>>> import psycopg2
@ -326,7 +326,7 @@ Thread safety
The Psycopg module is *thread-safe*: threads can access the same database
using separate session (by creating a :class:`connection` per thread) or using
the same session (accessing to the same connection and creating separate
:class:`cursor`\ s). In |DBAPI 2.0|_ parlance, Psycopg is *level 2 thread safe*.
:class:`cursor`\ s). In |DBAPI|_ parlance, Psycopg is *level 2 thread safe*.