Hi,
I desperately hope that someone can help with this!! I am connecting
to a remote machine (the connection works fine) but am having problems
understanding how to use/instantiate reflected tables.
My class would read as follows:
Base = declarative_base()
class ConnectLog(Base):
__table__ = Table('external_connection_log', Base.metadata,
autoload=True, autoload=engine)
However, importing [or trying to instantiate this class] will fail
until the connection is in place ie the class as it stands cannot be
called until a valid engine is bound. I'm guessing that something
will need to be passed to an __init__ in the class above.
Is there a strategy for dealing with this?
Many thanks,
Rob
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
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.