const data = client.query('SELECT * FROM drive', 'ev_onboard_45ae770c', {
type: 'sql',
headers: {
'one-off': 'totl', // one-off query header
'change-on': 'shift1', // over-write universal value
},
params: {
point: 'a7',
action: 'reverse',
},
})
interface QueryOptions {
    headers?: Record<string, string>;
    params?: Record<string, QParamType>;
    type: QueryType;
}

Properties

Properties

headers?: Record<string, string>

Custom headers to add to the request.

params?: Record<string, QParamType>

Parameters to accompany a query using them.

type: QueryType

Type of query being sent, e.g. 'sql' or 'influxql'.