InfluxQL is an SQL-like query language for interacting with data in InfluxDB. The following sections cover useful query syntax for exploring your data.
WHERE clause in InfluxQL:
The WHERE clause supports comparisons against strings, booleans, floats, integers, and against the time of the timestamp. It supports using regular expressions to match tags, but not to match fields.
Chain logic together using AND and OR, and separate using ( and ).
Acceptable comparators include:
1 2 3 4 5 6 7
= equal to <> not equal to != not equal to > greater than < less than =~ matches against !~ doesn’t match against
you module package.json must have key ‘sails’ , it’s a object, with contain key isHook, if want to replace default hook, you can add key hookName, eg: sails:{isHook:true,hookName:’orm’}
export a function and return object, the first param is sails
it will appear this error “Cannot read property ‘config’ of undefined”. Beacause sails version >= 0.12.2 orm is Separated into independent modules “sails-hook-orm” , this module don’t support ‘module’ key as adapter.
you can solve it by two way:
change adapter key ‘module’ to ‘adapter’
rockback sails to lower version (<=0.12.1) , and delete module “sails-hook-orm”