Skip to main content

repeat

Function repeat 

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

Repeats the text count times. Repeating "ab" three times yields "ababab"; non-positive counts yield an empty string. Maps to PostgreSQL REPEAT.