Skip to main content

StringAggregates

Trait StringAggregates 

Source
pub trait StringAggregates: Dialect {
    // Required methods
    fn group_concat_expr(column: &str, order_by: &str) -> String;
    fn json_array_agg_expr(column: &str) -> String;
    fn json_object_agg_expr(key: &str, value: &str) -> String;
}
Expand description

GROUP_CONCAT / STRING_AGG, JSON_ARRAYAGG, JSON_OBJECTAGG.

Required Methods§

Source

fn group_concat_expr(column: &str, order_by: &str) -> String

The concatenation of column (wrapped) with an ORDER BY fragment.

Source

fn json_array_agg_expr(column: &str) -> String

The JSON array aggregate of column.

Source

fn json_object_agg_expr(key: &str, value: &str) -> String

The JSON object aggregate of key and value columns.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§