[SQLObject] SQLObject Database connection
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Hong Y. <hon...@ho...> - 2004-12-26 07:42:47
|
I am using SQLObject with a PostgreSQL database. Part of my program uses SQLObject to access the database, part of it uses psycopg directly. The question is, do I have to initiailze two separate database connections, one with psycopg.connect for my own code, and another with connectionForURI('postgres://...') for use with SQLObject? Can I create a connectino for SQLObject from an existing psycopg connection of vice versa, get an psycopg connection back from an SQLObject connection object? Greetings, -- HONG Yuan Homemaster Trading Co., Ltd. No. 601, Bldg. 41, 288 Shuangyang Rd. (N) Shanghai 200433, P.R.C. Tel: +86 21 55056553 Fax: +86 21 55067325 E-mail: hon...@ho... |