@crapougnax/influx-orm
v0.9.2
Published
An InfluxDB ORM client
Downloads
10
Maintainers
Readme
Influx ORM
A friendly Influx ORM to ease your data retrieval and rendering.
Import
import { InfluxQL } from '@bradtech/influx-orm'
Build a query
const query = InfluxQL.select()
.from('temperature', [air, soil])
.whereTime({ start: Date.now(), interval: '-24h' })
Set a client and send a query
const client = InfluxQL.client('http://localhost:8086', { username: '', password: '' })
const data = client.call(query)
Use a formatter
const formatter = new ReactNativeChartKitFormatter({ params })
const formattedData = client.setFormatter(formatter).call(query)