Re: [Tutor] Database connections don't stay alive

2005-06-06 Thread Joe Healy
Hi there, I have mainly used the psycopg module to connect. It seems to work quite well. quick example: import psycopg conn = psycopg.connect("dbname=mydatabase password= host= user=") cur = conn.cursor() cur.execute('select * from transit;') results = cur.fetchall() Hope this

Re: [Tutor] Database connections don't stay alive

2005-06-03 Thread Kent Johnson
Olli Rajala wrote: > Well, I asked about tutorials, but maybe this was not so good day, > because it has been quite "silent". :) > > So, good tutorials are still welcome, though I know now how to connect > to the Postgresql database. I just have some problems, though. You might want to try aski

[Tutor] Database connections don't stay alive

2005-06-03 Thread Olli Rajala
Well, I asked about tutorials, but maybe this was not so good day, because it has been quite "silent". :) So, good tutorials are still welcome, though I know now how to connect to the Postgresql database. I just have some problems, though. With MySQL I can do like this: import MySQLdb def connec