Skip to content

Commit

Permalink
Add getter for columns names
Browse files Browse the repository at this point in the history
  • Loading branch information
pmlopes committed Mar 24, 2017
1 parent 32c284a commit 040e44b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/io/vertx/ext/sql/SQLRowStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import io.vertx.core.json.JsonArray;
import io.vertx.core.streams.ReadStream;

import java.util.List;

/**
* A ReadStream of Rows from the underlying RDBMS. This class follows the ReadStream semantics and will automatically
* close the underlying resources if all returned rows are returned. For cases where the results are ignored before the
Expand All @@ -25,6 +27,13 @@ public interface SQLRowStream extends ReadStream<JsonArray> {
*/
int column(String name);

/**
* Returns all column names available in the underlying resultset.
*
* @return the list of columns names returned by the query
*/
List<String> columns();

/**
* Event handler when a resultset is closed. This is useful to request for more results.
* @param handler
Expand Down

0 comments on commit 040e44b

Please sign in to comment.