All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.julienviet.groovy.pgclient.PgClient_GroovyStaticExtension Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy