Example usage for io.vertx.sqlclient Tuple getStringArray

List of usage examples for io.vertx.sqlclient Tuple getStringArray

Introduction

In this page you can find the example usage for io.vertx.sqlclient Tuple getStringArray.

Prototype

@GenIgnore(GenIgnore.PERMITTED_TYPE)
default String[] getStringArray(int pos) 

Source Link

Document

Get an array of String value at pos .

Usage

From source file:examples.PgClientExamples.java

License:Apache License

public void arrayExample() {
    // Create a tuple with a single array
    Tuple tuple = Tuple.of(new String[] { "a", "tuple", "with", "arrays" });

    // Add a string array to the tuple
    tuple.addStringArray(new String[] { "another", "array" });

    // Get the first array of string
    String[] array = tuple.getStringArray(0);
}