/** * call-seq: * last_insert_row_id( db ) -> fixnum * * Returns the unique row ID of the last insert operation. */ static VALUE static_api_last_insert_row_id( VALUE module, VALUE db ) { sqlite *handle; GetDB( handle, db ); return INT2FIX( sqlite_last_insert_rowid( handle ) ); }