Set last_insert_id(`id`) on Insert ... On Duplicate Key Update in MySQL
I just answered my own question!!

> .on_conflict(
                            preserve=[Model.first_name, Model.last_name],
                            update={Model.id: fn.last_insert_id(Model.id)}
                        )
I'm using peewee to generate an "INSERT ... ON DUPLICATE KEY UPDATE" query in MySQL using the .insert().on_conflict() methods for a table with an auto_increment ID.  Whether the query performs an INSERT or an UPDATE I'd like the query to return the ID of the most recently created row or the ID of the most recently updated row.  In MySQL this can be achieved by building a query that looks like the following:

`INSERT ... ON DUPLICATE KEY UPDATE `id`=last_insert_id(`id`)`

With this query, the very next call to last_insert_id will always return the right value whether the operation performs an insert or update.  Is it possible to get peewee to render such a query using the Model.insert().on_conflict() API??