package io.vertx.groovy.mysqlclient;
public class MySQLConnection_GroovyStaticExtension {
public static void connect(io.vertx.mysqlclient.MySQLConnection j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> connectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mysqlclient.MySQLConnection>> handler) {
io.vertx.mysqlclient.MySQLConnection.connect(vertx,
connectOptions != null ? new io.vertx.mysqlclient.MySQLConnectOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(connectOptions)) : null,
handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mysqlclient.MySQLConnection>>() {
public void handle(io.vertx.core.AsyncResult<io.vertx.mysqlclient.MySQLConnection> ar) {
handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null);
}
}