Instream v0.16.0 Instream.Query.Builder View Source

Query Builder.

Link to this section Summary

Functions

Builds a CREATE DATABASE query expression

Builds a CREATE RETENTION POLICY query expression

Sets the DEFAULT flag for queries supporting it

Builds a DROP DATABASE query expression

Builds a DROP RETENTION POLICY query expression

Sets the DURATION argument for queries supporting it

Builds a FROM query expression

Builds a LIMIT query expression

Builds a OFFSET query expression

Sets the ON argument for queries supporting it

Sets the REPLICATION argument for queries supporting it

Builds a SELECT query expression

Build a SHOW query expression

Builds a WHERE query expression

Link to this section Types

Link to this section Functions

Link to this function create_database(name) View Source
create_database(String.t) :: t

Builds a CREATE DATABASE query expression.

Link to this function create_retention_policy(name) View Source
create_retention_policy(String.t) :: t

Builds a CREATE RETENTION POLICY query expression.

Link to this function default(query, default \\ true) View Source
default(t, boolean) :: t

Sets the DEFAULT flag for queries supporting it.

Link to this function drop_database(name) View Source
drop_database(String.t) :: t

Builds a DROP DATABASE query expression.

Link to this function drop_retention_policy(name) View Source
drop_retention_policy(String.t) :: t

Builds a DROP RETENTION POLICY query expression.

Link to this function duration(query, expr) View Source
duration(t, String.t) :: t

Sets the DURATION argument for queries supporting it.

Link to this function from(series) View Source
from(module | String.t) :: t

Builds a FROM query expression.

Link to this function limit(query, value) View Source
limit(t, integer) :: t

Builds a LIMIT query expression.

Link to this function offset(query, value) View Source
offset(t, integer) :: t

Builds a OFFSET query expression.

Sets the ON argument for queries supporting it.

Link to this function replication(query, num) View Source
replication(t, pos_integer) :: t

Sets the REPLICATION argument for queries supporting it.

Link to this function select(query, expr \\ "*") View Source
select(t, String.t) :: t

Builds a SELECT query expression.

Link to this function show(what) View Source
show(atom) :: t

Build a SHOW query expression.

Link to this function where(query, fields) View Source
where(t, map) :: t

Builds a WHERE query expression.