File: pgdb.txt

package info (click to toggle)
pygresql 1%3A4.0-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 468 kB
  • sloc: ansic: 2,709; python: 1,600; makefile: 63
file content (42 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
================================
PyGreSQL Programming Information
================================

--------------------------------------------
The DB-API compliant interface (pgdb module)
--------------------------------------------

.. meta::
   :description: The DB-API compliant interface (pgdb module)
   :keywords: PyGreSQL, pgdb, DB-API, PostGreSQL, Python

.. sectnum::
.. contents:: Contents


Introduction
============
You may either choose to use the
`"classic" PyGreSQL interface <pg.html>`_
provided by the `pg` module or else the
`DB-API 2.0 compliant interface <pgdb.html>`_
provided by the `pgdb` module.

`DB-API 2.0 <http://www.python.org/dev/peps/pep-0249/>`_
(Python Database API Specification v2.0)
is a specification for connecting to databases (not only PostGreSQL)
from Python that has been developed by the Python DB-SIG in 1999.

The following documentation covers only the newer `pgdb` API.

The authoritative programming information for the DB-API is availabe at
  http://www.python.org/dev/peps/pep-0249/

A tutorial-like introduction to the DB-API can be found at
  http://www2.linuxjournal.com/lj-issues/issue49/2605.html


The pgdb module
===============
.. note:: This section of the documentation still needs to be written.