We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2642be4 + 0fb1e04 commit e96f9abCopy full SHA for e96f9ab
README.md
@@ -867,6 +867,31 @@ print(client.sql(query))
867
}
868
```
869
870
+### `sql(query)`
871
+Retrieve inserted values using a SQL syntax. This method corresponds to a POST request at /query/sql.
872
+
873
+#### Request example
874
875
+```python
876
+from pyslicer import SlicingDice
877
+client = SlicingDice('MASTER_OR_READ_API_KEY')
878
+query = "SELECT COUNT(*) FROM default WHERE age BETWEEN 0 AND 49"
879
+print(client.sql(query))
880
+```
881
882
+#### Output example
883
884
+```json
885
+{
886
+ "took":0.063,
887
+ "result":[
888
+ {"COUNT": 3}
889
+ ],
890
+ "count":1,
891
+ "status":"success"
892
+}
893
894
895
## License
896
897
[MIT](https://opensource.org/licenses/MIT)
0 commit comments