Cool thank you. I take it that means there's no way to do this if I'm just using a Base model and a session.
I had been just doing: session.add(myobj) session.commit() where myobj is an instance of a model class that inherits from Base, I hadn't been creating Table objects directly. On Fri, Jan 15, 2010 at 11:38 AM, Michael Bayer <[email protected]>wrote: > Stephen wrote: > > I didn't see anything in the docs or in this group so please forgive > > me if this has been asked already. > > > > If I'm using sqlalchemy with an underlying mysql db, how can I achieve > > INSERT DELAYED? > > > > I saw this changeset on the wiki: > > http://www.sqlalchemy.org/trac/changeset/4236 > > > > But I don't understand how to take advantage of this through the > > sqlalchemy api. Is the only way to get this through: > > scoped_session(..).connection(...).execute("sql command") > > myinsert = table.insert().prefix_with("DELAYED") > > session.execute(myinsert) > > > > > -- > 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]<sqlalchemy%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > > > >--
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.
