next up previous
Next: Query Up: Finer Details Previous: Finer Details

Connection

You will notice a string is used to specify the database in the connection function call. Connection parameters include:

There are other options available too. The connection string format is option=value option=value .... For example, host=billing.bigco.com dbname=finance user=sam connects as user sam to database finance on host billing.bigco.com. The connection handle returned should be checked to make sure it succeeded before sending a query.


Bruce Momjian
2003-01-31