Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Allow multiple statements in single query #292

Merged
merged 3 commits into from
Feb 26, 2016
Merged

Allow multiple statements in single query #292

merged 3 commits into from
Feb 26, 2016

Conversation

amancevice
Copy link
Contributor

Allows users to pass in multiple ;-separated queries into the same call.
Returns a list of ResultSet instances, as if the query() method had been
mapped across the different queries.

client.query("SELECT * FROM mymeas WHERE time>now()-1h; " \
    "SELECT * FROM othermeas WHERE time>now-1h")

Attempting to send multiple queries to the DataFrameClient currently throws an exception.

@aviau
Copy link
Collaborator

aviau commented Feb 4, 2016

@amancevice I am all for this. But can you please write a test?

@amancevice
Copy link
Contributor Author

@aviau Sure thing; committed a test just now

Alexander Mancevice added 3 commits February 4, 2016 15:39
Allows users to pass in multiple ;-separated queries into the same call.
Returns a list of ResultSet instances, as if the query() method had been
mapped across the different queries.

```python
client.query("SELECT * FROM mymeas WHERE time>now()-1h; " \
    "SELECT * FROM othermeas WHERE time>now-1h")
```
@amancevice
Copy link
Contributor Author

And now the test passes flake8 checks...

@amancevice
Copy link
Contributor Author

@aviau just checking in -- do you need anything else to accept the PR?

@amancevice
Copy link
Contributor Author

@aviau Hi, just checking in again

@aviau
Copy link
Collaborator

aviau commented Feb 26, 2016

That works. Thank you!

aviau added a commit that referenced this pull request Feb 26, 2016
Allow multiple statements in single query
@aviau aviau merged commit 1e8e3dd into influxdata:master Feb 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy