Skip to main content

replace

Function replace 

Source
pub fn replace<S, F, T>(
    expression: impl IntoExpr<S>,
    from: impl IntoExpr<F>,
    to: impl IntoExpr<T>,
) -> Expr<<<S as StringBinaryExpr<F, String>>::Output as StringBinaryExpr<T, String>>::Output>
Expand description

Replaces every exact occurrence of from with to. Returns NULL if any argument is NULL. Maps to PostgreSQL REPLACE.