Skip to content

Commit

Permalink
style: fix example formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Jan 22, 2024
1 parent 8dff54a commit dd7a246
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/src/main/java/com/influxdb/v3/IOxExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public static void main(final String[] args) throws Exception {
System.out.printf("| %-8s | %-8s | %-30s |%n", "location", "value", "time");
System.out.printf("--------------------------------------------------------%n");

String sqlWithParameters = "select time,location,value from temperature where location=$location order by time desc limit 10";
String sqlWithParameters =
"select time,location,value from temperature where location=$location order by time desc limit 10";
try (Stream<Object[]> stream = client.query(sqlWithParameters, Map.of("location", "north"))) {
stream.forEach(row -> System.out.printf("| %-8s | %-8s | %-30s |%n", row[1], row[2], row[0]));
}
Expand Down

0 comments on commit dd7a246

Please sign in to comment.