Example usage for io.vertx.sqlclient Tuple addStringArray

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

Introduction

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

Prototype

@GenIgnore(GenIgnore.PERMITTED_TYPE)
default Tuple addStringArray(String[] value) 

Source Link

Document

Add an array of String value at the end of the tuple.

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);
}