Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop query #15

Merged
merged 7 commits into from
Feb 5, 2014
Merged

Develop query #15

merged 7 commits into from
Feb 5, 2014

Conversation

nichdiekuh
Copy link
Collaborator

renamed readpoints() to query()

@nichdiekuh
Copy link
Collaborator Author

Ok, I've added a warning and the options now have a "devmode" flag. Hope that does the job. let me know what you think.

@nichdiekuh
Copy link
Collaborator Author

no need to be sorry, I'm gonna change it :)

@nichdiekuh
Copy link
Collaborator Author

I hope you don't mind me using yoda conditions.

…development', NODE_ENV == undefined. Default log function (console.log) can be overidden
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e4c30bd on nichdiekuh:develop-query into 452898e on bencevans:master.

request({
url: this.url('db/' + this.options.database + '/series', { q: query }),
json: true
}, this._parseCallback(callback));
};

// legacy function
InfluxDB.prototype.readPoints = function(query, callback) {
if (false !== this.options.depreciatedLogging) this.options.depreciatedLogging('influx.readPoints() has been depreciated, please use influx.query()');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ( false !== this.options.depreciatedLogging)

@bencevans
Copy link
Member

Just that one change, then I'm happy for you to merge this into master!

@nichdiekuh
Copy link
Collaborator Author

ok, I removed it. Would you also bump the version afterwards?

@nichdiekuh
Copy link
Collaborator Author

Hm...the failed build looks like an issue with travis to me

@bencevans
Copy link
Member

Yep it was a Travis issue. It's due to the reporting of coverage to Coveralls.io which I should probably put as an after_script.

bencevans added a commit that referenced this pull request Feb 5, 2014
Added `query()` and depreciated `readPoints()`
@bencevans bencevans merged commit 430505e into node-influx:master Feb 5, 2014
@nichdiekuh nichdiekuh deleted the develop-query branch June 7, 2014 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants