Re: [Sqlalchemy-users] constraints, cont'd

2006-07-14 Thread David Shoemaker
f such a dependency?  While you're refactoring this code, it might be worth it to process the constraints separately ( i.e. not linked to table creation), so the syntax would be:...CREATE TABLE foo (   id INTEGER SERIAL,   foo_id INTEGER,)...ALTER TABLE foo   ADD PRIMARY KEY(id),   ADD FOREIGN KEY(

Re: [Sqlalchemy-users] select count

2006-07-12 Thread David Shoemaker
ar()table.count(where).scalar() isn't so bad, but I still prefer simply Class.count(where).  Maybe I'm missing something, too?-David Shoemaker Kevin--Kevin DangoorTurboGears / Zesty Newsemail: [EMAIL PROTECTED]company: ht