From: Mike Bayer Date: Sat, 25 Mar 2006 20:28:01 +0000 (+0000) Subject: method add X-Git-Tag: rel_0_1_5~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d75cf6ca135357f857417a4c3df1ee39273bdf9b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git method add --- diff --git a/doc/build/content/datamapping.myt b/doc/build/content/datamapping.myt index ef8f6ed01c..bd618054e9 100644 --- a/doc/build/content/datamapping.myt +++ b/doc/build/content/datamapping.myt @@ -65,7 +65,7 @@ UPDATE users SET user_name=:user_name userlist = User.mapper.select_by(user_id=12) -

There is also a full-blown "monkeypatch" function that creates a primary mapper, attaches the above mapper class property, and also the methods get, get_by, select, select_by, selectone, selectfirst, commit and delete:

+

There is also a full-blown "monkeypatch" function that creates a primary mapper, attaches the above mapper class property, and also the methods get, get_by, select, select_by, selectone, selectfirst, commit, expire, refresh, expunge and delete:

<&|formatting.myt:code&> # "assign" a mapper to the User class/users table assign_mapper(User, users)