16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2000, 2001 Free Software Foundation |
# Copyright 2000-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# postgresql/DBdriver.py |
# postgresql/DBdriver.py |
39 |
import pgdb |
import pgdb |
40 |
from _pg import error as PGError # This is so we can catch login errors |
from _pg import error as PGError # This is so we can catch login errors |
41 |
except ImportError, message: |
except ImportError, message: |
42 |
raise GConnections.AdapterNotInstalled, \ |
tmsg = _("Driver not installed: pygresql for PostgreSQL [%s]") % message |
43 |
_("Driver not installed: pygresql for PostgreSQL [%s]") % message |
raise GConnections.AdapterNotInstalled, tmsg |
44 |
|
|
45 |
class PG_RecordSet(PGSQL_RecordSet): |
class PG_RecordSet(PGSQL_RecordSet): |
46 |
pass |
pass |
123 |
'object': PG_DataObject_Object, |
'object': PG_DataObject_Object, |
124 |
'sql': PG_DataObject_SQL |
'sql': PG_DataObject_SQL |
125 |
} |
} |
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|