View Source Plausible.Stats.SQL.WhereBuilder (Plausible v0.0.1)

A module for building am ecto where clause of a query out of a query.

Summary

Functions

Builds WHERE clause for a given Query against sessions or events table

Builds WHERE clause condition based off of a filter and a custom column name Used for special business logic cases

Functions

Link to this function

build(table, site, query)

View Source

Builds WHERE clause for a given Query against sessions or events table

Link to this function

build_condition(db_field, filter)

View Source

Builds WHERE clause condition based off of a filter and a custom column name Used for special business logic cases

Accepts nil as the filter parameter, in which case the condition is a no-op (WHERE TRUE).