Skip to main content

reverse

Function reverse 

Source
pub fn reverse<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Text, E::Nullable, E::Aggregate, E::Sources>
where V: SQLParam + 'a, V::DialectMarker: DialectSupports<Reverse>, E: Expr<'a, V>, E::SQLType: Textual,
Expand description

Reverses a text value (REVERSE), on PostgreSQL and MySQL.

The argument must be text. The result is text and keeps the argument’s nullability.

§Examples

assert_eq!(reverse(users.name).sql(), r#"REVERSE ("users"."name")"#);