diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-07-15 01:50:27 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-07-15 01:50:27 +0000 |
commit | 751d2b340b407c288b1c789bebd972d445267e46 (patch) | |
tree | 1b02f541adfe0fd5bed02a9d41b4b5623a40141e /lib/sqlalchemy/engine/base.py | |
parent | 5c752ee1499bf8e4bff7b2663655d9dd4099593d (diff) | |
download | sqlalchemy-751d2b340b407c288b1c789bebd972d445267e46.tar.gz |
more query methods, overhauliung docs for forwards 0.4 method
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 82ec73f59..99688a48f 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -326,14 +326,11 @@ class ExecutionContext(object): """Return the list of the primary key values for the last insert statement executed. This does not apply to straight textual clauses; only to - ``sql.Insert`` objects compiled against a ``schema.Table`` object, - which are executed via `execute()`. The order of + ``sql.Insert`` objects compiled against a ``schema.Table`` object. + The order of items in the list is the same as that of the Table's 'primary_key' attribute. - In some cases, this method may invoke a query back to the - database to retrieve the data, based on the "lastrowid" value - in the cursor. """ raise NotImplementedError() @@ -865,6 +862,7 @@ class ResultProxy(object): rowcount = property(lambda s:s.context.get_rowcount()) connection = property(lambda s:s.context.connection) + lastrowid = property(lambda s:s.cursor.lastrowid) def _init_metadata(self): if hasattr(self, '_ResultProxy__props'): |