[Tutor] accessing a postgresql database

rushing@shreve.net rushing@shreve.net
Sat, 18 Sep 1999 17:43:42 -0500 (CDT)

anyone know the syntax to access a postgresql database with a username and
password?   I can disable the postgresql password and it works, but i need
to be able to use the password feature.


import pg
dat = pg.connect('scribe', 'localhost')
res = dat.query('select * from scribe')