Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support a restricted SQL subset for querying timeseries
- Add methods for querying oximeter timeseries using a limited subset of SQL. The raw string is heavily validated, and only simple SELECT queries are currently supported, with a limited subset of ClickHouse functions. Still, this allows running many different kinds of queries, including aggregations, window functions, and joins. - Adds a few types for reading out tabular data from the query result, and parsing basic metadata for understanding resource usage of the queries. - Add a barebones SQL shell for running oximeter SQL queries, using the new `Client::query` method. - Include a bunch of tests for the restricted SQL subset as well as correctness of the actual returned queries against the DB. - Add a small README for the SQL shell
- Loading branch information