module

Unit::Avram::MigrationHelpers::PostgreSQLExtensions

PostgreSQL-specific query extensions

Macros

measurement_avg(column_name, type, target_unit)

Average with proper unit handling

Source
measurement_sum(column_name, type, target_unit)

Use PostgreSQL's numeric operations for better precision

Source
with_normalized_between(column_name, min, max)
Source
with_normalized_greater_than(column_name, measurement)

Use normalized column if available for faster queries

Source