Parses InfluxDB query responses in JSONL, CSV, JSON, and Parquet formats with type coercion.
Type Coercion
- Timestamps →
DateTime.t() - Numbers →
integer()orfloat()based on value - Booleans →
true/false - Strings →
String.t()
Summary
Functions
Coerces known value types in a row map.
Parses a response body based on the specified format.
Functions
Coerces known value types in a row map.
Converts RFC3339 timestamp strings to DateTime, leaves
other types as-is.
Parses a response body based on the specified format.
Parameters
body- response body binaryformat- one of:json,:jsonl,:csv,:parquet
Returns
{:ok, [map()]}— list of row maps{:error, reason}— parse failure