View Source Plausible.Stats.Legacy.QueryBuilder (Plausible v0.0.1)
Module used to parse URL search params to a valid Query, used to power the API for the dashboard. @deprecated
Summary
Functions
Examples:
iex> QueryBuilder.parse_order_by(nil) []
Functions
Examples:
iex> QueryBuilder.parse_order_by(nil) []
iex> QueryBuilder.parse_order_by("") []
iex> QueryBuilder.parse_order_by("0") []
iex> QueryBuilder.parse_order_by("[}") []
iex> QueryBuilder.parse_order_by(~s({"any":"object"})) []
iex> QueryBuilder.parse_order_by(~s([["visitors","invalid"]])) []
iex> QueryBuilder.parse_order_by(~s([["visitors","desc"]])) [{:visitors, :desc}]
iex> QueryBuilder.parse_order_by(~s([["visitors","asc"],["visit:source","desc"]])) [{:visitors, :asc}, {"visit:source", :desc}]