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

Create Continuous Query #16

Closed
ehjk opened this issue Sep 14, 2016 · 7 comments · Fixed by #18
Closed

Create Continuous Query #16

ehjk opened this issue Sep 14, 2016 · 7 comments · Fixed by #18

Comments

@ehjk
Copy link

ehjk commented Sep 14, 2016

Hello. Is it possible to create a Continuous Query using the Client?

@mvadu
Copy link
Contributor

mvadu commented Sep 14, 2016

Not as of now. As of now it supports only write(insert) and read(select). Continuous Query needs to be setup only once, and I am not sure you want to depend on a client library to do that. Can you provide a use case?
btw, I am working on a next version with more of DML kind of constructs. I can try to add CQ as part of it.

@ehjk
Copy link
Author

ehjk commented Sep 14, 2016

I have an existing .Net interface that runs on IoT type hardware. They are self-managing in that I am currently using a different time-series historian where it self creates Streams (Measurements) and can set up its own calculations (CQ) to run according to a central configuration. I just wanted to avoid using a Client for some parts of InfluxDB interaction, and then raw query URLs for other parts.

@mvadu
Copy link
Contributor

mvadu commented Sep 14, 2016

Okay.. if you can wait for a week (or two) I will give you a version with CQ. It will be more like my current implementation of retention policy object model.

@ehjk
Copy link
Author

ehjk commented Sep 15, 2016

A week or two (but not three) should be fine.
I'm working on 2 week sprints where I am looking to integrate Influx.Db.Net.

@mvadu
Copy link
Contributor

mvadu commented Sep 26, 2016

@ehjk Can you pls check the latest version (either build your own or pull from Nuget) and verify if the current implementation of CQ work for your needs?

@ehjk
Copy link
Author

ehjk commented Oct 19, 2016

Great, it works as expected. Thank you!

One note...can I delete a previously created CQ? I can't see an obvious option for that. Do I specify that in the Create CQ query?

@mvadu
Copy link
Contributor

mvadu commented Oct 24, 2016

Sorry for the delay in response. I have a new version coming in tomorrow which will have an option to Drop CQs.

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 a pull request may close this issue.

2 participants