Example usage for io.vertx.mysqlclient MySQLSetOption MYSQL_OPTION_MULTI_STATEMENTS_OFF

List of usage examples for io.vertx.mysqlclient MySQLSetOption MYSQL_OPTION_MULTI_STATEMENTS_OFF

Introduction

In this page you can find the example usage for io.vertx.mysqlclient MySQLSetOption MYSQL_OPTION_MULTI_STATEMENTS_OFF.

Prototype

MySQLSetOption MYSQL_OPTION_MULTI_STATEMENTS_OFF

To view the source code for io.vertx.mysqlclient MySQLSetOption MYSQL_OPTION_MULTI_STATEMENTS_OFF.

Click Source Link

Usage

From source file:examples.MySQLClientExamples.java

public void setOptionExample01(MySQLConnection connection) {
    connection.setOption(MySQLSetOption.MYSQL_OPTION_MULTI_STATEMENTS_OFF, ar -> {
        if (ar.succeeded()) {
            System.out.println("CLIENT_MULTI_STATEMENTS is off now");
        } else {/*from www. ja  v a  2  s.  c o  m*/
            System.out.println("Failure: " + ar.cause().getMessage());
        }
    });
}