connect([dbname], [host], [port], [opt], [tty], [user], [passwd])
Name of connected database (string/None)
Name of the server host (string/None)
Port used by the database server (integer/-1)
Options for the server (string/None)
File or TTY for optional debug output from server (string/None)
PostgreSQL user (string/None)
Password for user (string/None)
This method opens a connection to a specified database on a given PostgreSQL server. The arguments can be given using key words here. The names of the key words are the name of the parameters given in the syntax line. For a precise description of the parameters, please refer to Chapter 27.