File: introduction.txt

package info (click to toggle)
pygresql 1%3A5.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,340 kB
  • ctags: 2,187
  • sloc: python: 13,239; ansic: 4,975; makefile: 164
file content (24 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Introduction
============

You may either choose to use the "classic" PyGreSQL interface provided by
the :mod:`pg` module or else the newer DB-API 2.0 compliant interface
provided by the :mod:`pgdb` module.

The following part of the documentation covers only the older :mod:`pg` API.

The :mod:`pg` module handles three types of objects,

- the :class:`Connection` instances, which handle the connection
  and all the requests to the database,
- the :class:`LargeObject` instances, which handle
  all the accesses to PostgreSQL large objects,
- the :class:`Query` instances that handle query results

and it provides a convenient wrapper class :class:`DB`
for the basic :class:`Connection` class.

.. seealso::

    If you want to see a simple example of the use of some of these functions,
    see the :doc:`../examples` page.