Example usage for io.vertx.sqlclient SqlConnectOptions setCachePreparedStatements

List of usage examples for io.vertx.sqlclient SqlConnectOptions setCachePreparedStatements

Introduction

In this page you can find the example usage for io.vertx.sqlclient SqlConnectOptions setCachePreparedStatements.

Prototype

public SqlConnectOptions setCachePreparedStatements(boolean cachePreparedStatements) 

Source Link

Document

Set whether prepared statements cache should be enabled.

Usage

From source file:examples.SqlClientExamples.java

License:Apache License

public void queries09(Vertx vertx, SqlConnectOptions connectOptions, PoolOptions poolOptions) {

    // Enable prepare statements caching
    connectOptions.setCachePreparedStatements(true);
}