insertId property

BigInt get insertId

Returns the auto-generated ID from the last INSERT operation.

This is particularly useful when inserting records into tables with auto-increment primary keys.

Implementation

BigInt get insertId => resultSet.lastInsertID;