com.julienviet.groovy.pgclient.PgClient_GroovyStaticExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactive-pg-client Show documentation
Show all versions of reactive-pg-client Show documentation
The reactive Postgres client
package com.julienviet.groovy.pgclient;
public class PgClient_GroovyStaticExtension {
public static com.julienviet.pgclient.PgPool pool(com.julienviet.pgclient.PgClient j_receiver, java.util.Map options) {
return io.vertx.core.impl.ConversionHelper.fromObject(com.julienviet.pgclient.PgClient.pool(options != null ? new com.julienviet.pgclient.PgPoolOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
}
public static com.julienviet.pgclient.PgPool pool(com.julienviet.pgclient.PgClient j_receiver, io.vertx.core.Vertx vertx, java.util.Map options) {
return io.vertx.core.impl.ConversionHelper.fromObject(com.julienviet.pgclient.PgClient.pool(vertx,
options != null ? new com.julienviet.pgclient.PgPoolOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
}
public static void connect(com.julienviet.pgclient.PgClient j_receiver, io.vertx.core.Vertx vertx, java.util.Map options, io.vertx.core.Handler> handler) {
com.julienviet.pgclient.PgClient.connect(vertx,
options != null ? new com.julienviet.pgclient.PgConnectOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
handler != null ? new io.vertx.core.Handler>() {
public void handle(io.vertx.core.AsyncResult ar) {
handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
}
} : null);
}
}