Skip to content

Commit 743e4c9

Browse files
author
Alexander Mancevice
committed
Allow multiple statements in single query
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") ```
1 parent c101386 commit 743e4c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

influxdb/_dataframe_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def get_list_series(self, database=None):
101101

102102
def _to_dataframe(self, rs):
103103
result = {}
104+
if isinstance(rs, list):
105+
return map(self._to_dataframe, rs)
104106
for key, data in rs.items():
105107
name, tags = key
106108
if tags is None:

0 commit comments

Comments
 (0)
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