Im trying to use clause "autoload=True" to automatically read table
structure under Interbase 7.5. It does not work. Here is my code:
import sqlalchemy
import sqlalchemy.orm
engine = sqlalchemy.create_engine('firebird://
SYSDBA:[EMAIL PROTECTED]:3050/d:/bazy/bw_adriana_old.gdb')
engine.connect();
metadata = sqlalchemy.MetaData(engine)
tabCountry = sqlalchemy.Table('country', metadata, autoload=True)
class Country(object):
def __repr__(self):
return self.description
sqlalchemy.orm.mapper(Country, tabCountry)
Session = sqlalchemy.orm.sessionmaker(bind=engine, autoflush=True,
transactional=True)
[...rest of code...]
While "autoload=True" works with newest version of firebird, it does
not with interbase. Is interbase supported in case of using
"autoload=True" ? I can manually define all the fields, but i have
over 300 tables to define...
BTW - im using newest python, newest kinterbasdb, and newest
sqlalchemy.
--
Dariusz Jakubowski
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---