Method: Mysql2::Client#last_id

Defined in:
ext/mysql2/client.c

#last_idObject



415
416
417
418
419
# File 'ext/mysql2/client.c', line 415

static VALUE rb_mysql_client_last_id(VALUE self) {
  GET_CLIENT(self);
  REQUIRE_OPEN_DB(wrapper);
  return ULL2NUM(mysql_insert_id(wrapper->client));
}