Created
February 13, 2019 08:14
-
-
Save oshai/2e759ee34512145c656e7f418cef4310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request -> { | |
mySQLClient.getConnection(res -> { | |
if (res.succeeded()) { | |
SQLConnection connection = res.result(); | |
// Got a connection | |
connection.query("SELECT 0", result -> | |
request.response().end("Got response " + result.result().getNumRows())); | |
} else { | |
// Failed to get connection - deal with it | |
request.response().end("Failed!"); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment