can i set up a mysql db connection as a class ?

nephish at xit.net nephish at xit.net
Fri Apr 28 08:59:24 EDT 2006


So this opens and closes the connection every time i run the query?
thats cool. i think that would fit in well. so when i need to run the
query, i pass something like

query = "SELECT * FROM `Table` WHERE `foo` = 'bar'"

result = DB_Connector.Execute(query)

and the result would be the same as if i ran the query right there in
the thread?

thanks for all your help gents, this is helping me a lot.




More information about the Python-list mailing list