I have some code like that: from sqlalchemy import * db = create_engine('mysql://[EMAIL PROTECTED]/wiki) metadata = BoundMetaData(db) wikis = Table('wiki_wiki', metadata, autoload=True)
# These are the empty classes that will become our data classes class Wiki(object): pass wikimapper = mapper(Wiki, wikis) session = create_session() page = session.query(Wiki).selectfirst(wikis.c.pagename=='FrontPage') It work, but I think it is not very OO, how can I rewrite the class Wiki? thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---