Hi-
My apologies if this has been asked and answered, but I was unable to
find any reference.  The SA documentation says it's possible to
pyPgSQL instead of psycopg2 but I can't make it work.  Basically,
here's what I'm trying:

from sqlalchemy import *
from pyPgSQL import libpq

def myConn():
    return libpq.PQconnectdb("host=localhost port=5432 dbname=...
user=... password=...")

db=create_engine('postgres://', creator=myConn)

This results in sqlalchemy.exceptions.InvalidRequestError: Cant get
DBAPI module for dialect '<sqlalchemy.databases.postgres.PGDialect
object

Any idea what dumb mistake I'm making?  Thanks.

Larry


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to