Skip to main content

substring

Function substring 

Source
pub fn substring<T>(
    arg: impl IntoExpr<T>,
    start: impl IntoExpr<i32>,
    count: impl IntoExpr<i32>,
) -> Expr<<T as StringUnaryExpr>::Output>
where T: StringUnaryExpr,
Expand description

Returns up to count characters from the 1-based start. From "abcdef", (2, 3) yields "bcd" and (0, 3) yields "ab"; negative counts are rejected. Maps to PostgreSQL SUBSTRING.