Re: [SQLObject] More connections for more tables
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Petr J. <pet...@tp...> - 2010-04-14 13:47:57
|
> > By the way: How are you solving problem with new creating new database? I > mean do you check if the table exist? Because I am using this code: > > try: > alreadyUsed.createTable() > Pathject.createTable() > print "I couldn´t find any table so I h´ve created one!" > > except dberrors.OperationalError: > pass > > But I think it´s a dirty... And one more thing: it would be nice if there > was some direct link to http://wiki.sqlobject.org/ from > http://www.sqlobject.org/ because on wiki are really useful information... > > > > 1. do not top post, please 2. try to reply/send to sql...@li... instead of the direct mail 3. maybe you are looking for this: Pathject.dropTable(ifExists=True), Pathject.createTable(ifNotExists=True) HTH Petr |