this all sounds very good.

On 01/09/06, Michael Bayer <[EMAIL PROTECTED]> wrote:
...
> - Session would get a "lock" method:
>         def lock(self, object, lockmode, entity_name=None)
>
> where lockmode is one of None, "read", "upgrade", "upgrade_nowait".
> it also would cascade following cascade rules.   for "read",
> "upgrade", "upgrade_nowait", a SELECT is issued for the instance's
> row using the appropriate FOR UPDATE [NOWAIT]; if the mapper
> specifies a version_id column, that will be matched up against the
> instance's version id.

- i saw that Hibernate also call modes 'upgrade'. Maybe it's just my
English, but what's wrong with simple 'update', especially if that is
the keyword that would be added?

- will 'read' mean serializabile isolation level (like Hibernate docs
imply), or "read-only" (all reads during a transaction will produce
the same result)? If the former, maybe 'read_only' can be added as a
feature of transaction? but maybe i'm still thinking at database level
and not ORM, so please ignore me if this is stupid.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to