View Source Plausible.Stats.QueryResult (Plausible v0.0.1)

This struct contains the (JSON-encodable) response for a query and is responsible for building it from database query results.

For the convenience of API docs and consumers, the JSON result produced by Jason.encode(query_result) is ordered.

Summary

Functions

Builds full JSON-serializable query response.

Functions

Link to this function

from(results, site, query, meta_extra)

View Source

Builds full JSON-serializable query response.

results should already-built by Plausible.Stats.QueryRunner