Skip to main content

replace_range

Function replace_range 

Source
pub fn replace_range<S, R>(
    expression: impl IntoExpr<S>,
    replacement: impl IntoExpr<R>,
    start: impl IntoExpr<i32>,
    count: impl IntoExpr<i32>,
) -> Expr<<S as StringBinaryExpr<R, String>>::Output>
where S: StringBinaryExpr<R, String>,
Expand description

Replaces count characters from the 1-based start with replacement. Returns NULL if either string argument is NULL. Maps to PostgreSQL’s callable OVERLAY form.