SqlUtils
Utilities for working with tables.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SqlUtils.type
Members list
Value members
Concrete methods
Add operation to use as part of sum aggregation.
Add operation to use as part of sum aggregation.
Attributes
Count aggregation for an array of values.
Count aggregation for an array of values.
Attributes
Max aggregation for an array of values.
Max aggregation for an array of values.
Attributes
Min aggregation for an array of values.
Min aggregation for an array of values.
Attributes
Sum aggregation for an array of values.
Sum aggregation for an array of values.
Attributes
Add corresponding elements of two arrays.
Add corresponding elements of two arrays.
Attributes
Count corresponding elements of two arrays.
Count corresponding elements of two arrays.
Attributes
Compute max of corresponding elements of two arrays.
Compute max of corresponding elements of two arrays.
Attributes
Compute min of corresponding elements of two arrays.
Compute min of corresponding elements of two arrays.
Attributes
Convert zero values in an array to nulls. Used with count aggregation.
Convert zero values in an array to nulls. Used with count aggregation.
Attributes
Create a table if not already present.
Create a table if not already present.
Value parameters
- config
-
Configuration for the table schema.
- time
-
Time suffix to use for the table. Typically tables will be used for a range of time and then deleted entirely when past the retention window.
Attributes
Set of custom functions to simplify usage.
Set of custom functions to simplify usage.
Attributes
Return a set of data queries for an ASL expression.
Return a set of data queries for an ASL expression.
Value parameters
- expr
-
Tag query to map to SQL.
- tables
-
Set of tables defined.
- time
-
Timestamp of interest for the current context.
Attributes
- Returns
-
Set of SQL queries to evaluate a data expression.
Extract the time based on the suffix for the table name.
Extract the time based on the suffix for the table name.
Attributes
Return a set of key queries for an ASL query expression.
Return a set of key queries for an ASL query expression.
Value parameters
- tables
-
Set of tables defined.
- time
-
Timestamp of interest for the current context.
- tq
-
Tag query to map to SQL.
Attributes
- Returns
-
Set of SQL queries to lookup the keys.
Max operation to use as part of aggregation.
Max operation to use as part of aggregation.
Attributes
Min operation to use as part of aggregation.
Min operation to use as part of aggregation.
Attributes
Convert the time to a suffix string that will be used on the table name.
Convert the time to a suffix string that will be used on the table name.
Attributes
Return a set of value queries for an ASL query expression.
Return a set of value queries for an ASL query expression.
Value parameters
- tables
-
Set of tables defined.
- time
-
Timestamp of interest for the current context.
- tq
-
Tag query to map to SQL.
Attributes
- Returns
-
Set of SQL queries to lookup the values.