diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-11 03:05:03 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-11 03:05:03 -0500 |
commit | 9c0755640c5f1d45596ff7234d2d42f1c92d09e0 (patch) | |
tree | d742ffa4269a28d9dc7e9017876af502a13a02fd /lib/sqlalchemy/orm/unitofwork.py | |
parent | 66e5de30f2e01593182058091075780b41411a78 (diff) | |
download | sqlalchemy-9c0755640c5f1d45596ff7234d2d42f1c92d09e0.tar.gz |
- clean up the batch insert thing
- add a test for batch inserts
- don't need elaborate _inserted_primary_key thing
- take some cruft out of ExecutionContext, ResultProxy,
EC members can be non-underscored, have mapper just call the
EC members for now.
- simplify "connection_callable", no need for a "flush_opts"
dictionary since this point of expansion is not needed
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
-rw-r--r-- | lib/sqlalchemy/orm/unitofwork.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py index 875ce634b..d9d64fe39 100644 --- a/lib/sqlalchemy/orm/unitofwork.py +++ b/lib/sqlalchemy/orm/unitofwork.py @@ -76,7 +76,6 @@ class UOWEventHandler(interfaces.AttributeExtension): class UOWTransaction(object): def __init__(self, session): self.session = session - self.mapper_flush_opts = session._mapper_flush_opts # dictionary used by external actors to # store arbitrary state information. @@ -316,7 +315,7 @@ class UOWTransaction(object): postsort_actions): rec.execute(self) - + def finalize_flush_changes(self): """mark processed objects as clean / deleted after a successful flush(). |