Skip to main content

AggregatePolicy

Trait AggregatePolicy 

Source
pub trait AggregatePolicy<D>: Numeric {
    type Sum: DataType;
    type Avg: DataType;
}
Expand description

Dialect-specific aggregate output mapping.

Keeps aggregate output typing in one place so all aggregate functions follow the same per-dialect policy.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AggregatePolicy<PostgresDialect> for Float4

Source§

impl AggregatePolicy<PostgresDialect> for Float8

Source§

impl AggregatePolicy<PostgresDialect> for Int2

Source§

impl AggregatePolicy<PostgresDialect> for Int4

Source§

impl AggregatePolicy<PostgresDialect> for Int8

Source§

impl AggregatePolicy<PostgresDialect> for Numeric

Source§

impl AggregatePolicy<SQLiteDialect> for Any

Source§

impl AggregatePolicy<SQLiteDialect> for Integer

Source§

impl AggregatePolicy<SQLiteDialect> for Numeric

Source§

impl AggregatePolicy<SQLiteDialect> for Real

Implementors§