pub fn repeat<'a, V, E, N>(
expr: E,
n: N,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Text, E::Nullable, <E::Aggregate as AggOr<N::Aggregate>>::Output>where
V: SQLParam + 'a,
V::DialectMarker: PostgresStringSupport,
E: Expr<'a, V>,
E::SQLType: Textual,
N: Expr<'a, V>,
N::SQLType: Integral,
N::Aggregate: AggregateKind,
E::Aggregate: AggOr<N::Aggregate>,Expand description
REPEAT - repeats a string n times (PostgreSQL).
ยงExample
use drizzle_core::expr::repeat;
// SELECT REPEAT('-', 40)
let separator = repeat("-", 40);