You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that let you dynamically change values in a query using the InfluxDB API. Parameterized queries make Flux queries more
158
+
reusable and can also be used to help prevent injection attacks.
159
+
160
+
InfluxDB Cloud inserts the params object into the Flux query as a Flux record named `params`. Use dot or bracket
161
+
notation to access parameters in the `params` record in your Flux query. Parameterized Flux queries support only `int`
162
+
, `float`, and `string` data types. To convert the supported data types into
163
+
other [Flux basic data types, use Flux type conversion functions](https://docs.influxdata.com/influxdb/cloud/query-data/parameterized-queries/#supported-parameter-data-types).
164
+
165
+
Parameterized query example:
166
+
> :warning: Parameterized Queries are supported only in InfluxDB Cloud, currently there is no support in InfluxDB OSS.
The [WriteApi](https://github.com/influxdata/influxdb-client-ruby/blob/master/lib/influxdb2/client/write_api.rb) supports synchronous and batching writes into InfluxDB 2.0. In default api uses synchronous write. To enable batching you can use WriteOption.
0 commit comments