Skip to content

Commit 5765748

Browse files
author
Enric Sala
committed
Update the usage examples in the README
1 parent daf8ac9 commit 5765748

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The client supports reading data from InfluxDB using query strings:
108108

109109
```matlab
110110
% Manually written query
111-
str = 'SELECT temperature FROM weather WHERE temperature > 20 LIMIT 100';
111+
str = 'SELECT temperature FROM weather WHERE humidity > 60 LIMIT 100';
112112
result = influxdb.runQuery(str);
113113
```
114114

@@ -134,6 +134,16 @@ result = influxdb.query('weather') ...
134134
.execute();
135135
```
136136

137+
The parameters of a query request can optionally be customized as follows:
138+
139+
```matlab
140+
% Customize a query request
141+
result = influxdb.query('weather') ...
142+
.database('another_database') ...
143+
.epoch('m') ...
144+
.execute();
145+
```
146+
137147
The result of a query is an object that provides additional functionalities:
138148

139149
```matlab

0 commit comments

Comments
 (0)