Example usage for io.vertx.mysqlclient MySQLConnection debug

List of usage examples for io.vertx.mysqlclient MySQLConnection debug

Introduction

In this page you can find the example usage for io.vertx.mysqlclient MySQLConnection debug.

Prototype

@Fluent
MySQLConnection debug(Handler<AsyncResult<Void>> handler);

Source Link

Document

Send a DEBUG command to dump debug information to the server's stdout.

Usage

From source file:examples.MySQLClientExamples.java

public void debugExample(MySQLConnection connection) {
    connection.debug(ar -> {
        if (ar.succeeded()) {
            System.out.println("Debug info dumped to server's STDOUT");
        } else {//from w  ww.  j  av  a2s. c  o  m
            System.out.println("Failure: " + ar.cause().getMessage());
        }
    });
}