def last_insert_id(self, cursor, table_name, pk_name):
    '\n        Given a cursor object that has just performed an INSERT statement into\n        a table that has an auto-incrementing ID, returns the newly created ID.\n\n        This method also receives the table name and the name of the primary-key\n        column.\n        '
    return cursor.lastrowid
Given a cursor object that has just performed an INSERT statement into
a table that has an auto-incrementing ID, returns the newly created ID.

This method also receives the table name and the name of the primary-key
column.
def last_insert_id(self, cursor, table_name, pk_name):
    '\n        Given a cursor object that has just performed an INSERT statement into\n        a table that has an auto-incrementing ID, returns the newly created ID.\n\n        This method also receives the table name and the name of the primary-key\n        column.\n        '
    return cursor.lastrowid