analytics icon indicating copy to clipboard operation
analytics copied to clipboard

APIv2: macros, SQL cleanup

Open macobo opened this issue 1 year ago • 0 comments

Cleanup PR.

QueryBuilder requires selected fields to be aliased via both field names passed to select_merge as well as setting selected_as. This PR introduces utility macros to reduce this sort of boilerplate.

It also moves more code under Plausible.Stats.SQL

macobo avatar Jun 28 '24 04:06 macobo