'return the \'lastrowid\' accessor on the DBAPI cursor.
This is a DBAPI specific method and is only functional
for those backends which support it, for statements
where it is appropriate.  It\'s behavior is not
consistent across backends.
Usage of this method is normally unnecessary when
using insert() expression constructs; the
:attr:`~ResultProxy.inserted_primary_key` attribute provides a
tuple of primary key values for a newly inserted row,
regardless of database backend.'

@property
def lastrowid(self):

    try:
        return self._saved_cursor.lastrowid
    except Exception as e:
        self.connection._handle_dbapi_exception(e, None, None, self._saved_cursor, self.context)
