Method: Mysql2::Client#last_id

Defined in:
ext/mysql2/client.c

#last_idObject

[View source]

409
410
411
412
413
# File 'ext/mysql2/client.c', line 409

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