diff --git a/src/main/java/io/vertx/ext/sql/SQLRowStream.java b/src/main/java/io/vertx/ext/sql/SQLRowStream.java index 8d60379..d921635 100644 --- a/src/main/java/io/vertx/ext/sql/SQLRowStream.java +++ b/src/main/java/io/vertx/ext/sql/SQLRowStream.java @@ -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 @@ -25,6 +27,13 @@ public interface SQLRowStream extends ReadStream { */ int column(String name); + /** + * Returns all column names available in the underlying resultset. + * + * @return the list of columns names returned by the query + */ + List columns(); + /** * Event handler when a resultset is closed. This is useful to request for more results. * @param handler