lastInsertId method

int lastInsertId()

The row id of the last inserted row. This counter is reset when calling export.

Implementation

int lastInsertId() {
  // load insert id. Will return [{columns: [...], values: [[id]]}]
  return _selectSingleRowAndColumn('SELECT last_insert_rowid();') as int;
}