PostgreSQL 7.2.1 Documentation
Prev | Chapter 9. PyGreSQL - Python Interface | Next

# 9.2. `pg` Module Functions

`pg` module defines only a few methods that allow to connect to a database and to define "default variables" that override the environment variables used by PostgreSQL.

These "default variables" were designed to allow you to handle general connection parameters without heavy code in your programs. You can prompt the user for a value, put it in the default variable, and forget it, without having to modify your environment. The support for default variables can be disabled by setting the -DNO_DEF_VAR option in the Python Setup file. Methods relative to this are specified by te tag [DV].

All variables are set to `None` at module initialization, specifying that standard environment variables should be used.

Prev | Home | Next
PyGreSQL - Python Interface | Up | connect