var influx = require("influx");
var influxdb = require("InfluxDB");
var client = influx({host: 'localhost', username: username, password: 
password, database: database})
load();
 function load()
        {
        console.log("inside load");
        //module.exports.InfluxDB = InfluxDB;
          /*influxdb = new InfluxDB( {host:'localhost', port:8086, 
username:'AnalyticsUser',password:'Password1',
database:'analytics'} );
          */

var influxdb =InfluxDB( {host:'localhost', port:8086, 
username:'AnalyticsUser',password:'Password1',
database:'analytics'} );
         
influxdb.query( "select * from 'last_modified'", function (err, results)

 {
  if(err)
{
throw err;
console.log(err);
console.log(err.stack);
console.log("not able to query");

}
else
{
console.log(results);
}
 });

}




error
var influxdb =InfluxDB( {host:'localhost', port:8086, 
username:'AnalyticsUser',password:'Password1',
              ^

ReferenceError: InfluxDB is not defined

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/eb16730f-c541-40fa-ad16-57fc2ca9249e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to