Finish query builder for LIMIT, SLIMIT and ORDER BY time #6065
This commit is contained in:
@@ -250,6 +250,18 @@ export default class InfluxQuery {
|
||||
query += ' fill(' + target.fill + ')';
|
||||
}
|
||||
|
||||
if (target.orderByTime === 'DESC') {
|
||||
query += ' ORDER BY time DESC';
|
||||
}
|
||||
|
||||
if (target.limit) {
|
||||
query += ' LIMIT ' + target.limit;
|
||||
}
|
||||
|
||||
if (target.slimit) {
|
||||
query += ' SLIMIT ' + target.slimit;
|
||||
}
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user