Re: Python + PostgreSQL

Поиск
Список
Период
Сортировка
От Karl Thomas Diedrich
Тема Re: Python + PostgreSQL
Дата
Msg-id Pine.GHP.4.21.0008021440410.10797-100000@raptor.csrv.uidaho.edu
обсуждение исходный текст
Ответ на Python + PostgreSQL  (Antonio Navarro Navarro <hostmaster@bemarnet.es>)
Ответы Re: Python + PostgreSQL
Список pgsql-interfaces
I used the Postgresql python package to write a program. I couldn't find
any documentation either. Examples come in the RedHat package.

I used qit like this:
from pg import DB
cnx = DB("database-name")
cnx.query("""CREATE TABLE ...""")

You can see the full application at http://deodas.sourceforge.net/. Thqe
parts in the the file DEODAS/deodas/src/deodas_mod.py under CVS web. 


Karl Diedrich 
died9501@uidaho.edu
http://www.uidaho.edu/~died9501/
http://deodas.sourceforge.net/

On Wed, 2 Aug 2000, Antonio Navarro Navarro wrote:

> Hi All !
> 
> I have installed postgresql-python-7.0.2-2.i386.rpm in a RedHat 6.2 box.
> Where can I find documentation for this module ? I'm trying to connect to a
> server but the python says 'no password supplied'
> 
> import pg
> 
> dg = pg.connect("template1", "localhost", 5432)
> 
> Regards,
> 
> Antonio Navarro Navarro
> BemarNet Management
> http://www.bemarnet.es
> hostmaster@bemarnet.es
> Tlf. +34-96-1656644
> Fax. +34-96-1656514
> 



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Chris Ryan
Дата:
Сообщение: PgSql ODBC + Coldfusion + Solaris
Следующее
От: tomas@mamma.varadinet.de
Дата:
Сообщение: Re: [OT] init.d [was: Re: And Furthermore. Was: PSQL Working, but PGAccess Not Connecting.]