Search in sources :

Example 11 with JDBCClient

use of io.vertx.ext.jdbc.JDBCClient in project vertx-auth by vert-x3.

the class AuthJDBCExamples method example5.

public void example5(Vertx vertx, JsonObject jdbcClientConfig) {
    JDBCClient jdbcClient = JDBCClient.createShared(vertx, jdbcClientConfig);
    JDBCAuth authProvider = JDBCAuth.create(vertx, jdbcClient);
}
Also used : JDBCClient(io.vertx.ext.jdbc.JDBCClient) JDBCAuth(io.vertx.ext.auth.jdbc.JDBCAuth)

Aggregations

JDBCClient (io.vertx.ext.jdbc.JDBCClient)11 JsonObject (io.vertx.core.json.JsonObject)9 JsonArray (io.vertx.core.json.JsonArray)5 SQLConnection (io.vertx.ext.sql.SQLConnection)5 Suspendable (co.paralleluniverse.fibers.Suspendable)1 AbstractVerticle (io.vertx.core.AbstractVerticle)1 Handler (io.vertx.core.Handler)1 Vertx (io.vertx.core.Vertx)1 Runner (io.vertx.example.util.Runner)1 AuthProvider (io.vertx.ext.auth.AuthProvider)1 JDBCAuth (io.vertx.ext.auth.jdbc.JDBCAuth)1 ResultSet (io.vertx.ext.sql.ResultSet)1 SQLRowStream (io.vertx.ext.sql.SQLRowStream)1 UpdateResult (io.vertx.ext.sql.UpdateResult)1 Router (io.vertx.ext.web.Router)1 RoutingContext (io.vertx.ext.web.RoutingContext)1 TestUtil (io.vertx.openshift.jdbc.TestUtil)1 SQLException (java.sql.SQLException)1 PGPoolingDataSource (org.postgresql.ds.PGPoolingDataSource)1