method

last_insert_id

last_insert_id(sequence_name)
private

Returns the current ID of a table’s sequence.