prorm API Reference
    Preparing search index...

    Function sqlRepeat

    • Repeat a string N times.

      • MySQL, MariaDB, Postgres, CockroachDB, Redshift, DB2, Snowflake, ClickHouse: native REPEAT(expr, n) (ClickHouse: repeat(expr, n)).
      • MSSQL: has no REPEAT; uses REPLICATE(expr, n), which is exactly equivalent.
      • Oracle: has no REPEAT. Workaround: RPAD(expr, LENGTH(expr) * n, expr)RPAD's first argument already contributes one copy of expr, and padding with expr itself out to length(expr) * n characters fills in the remaining n - 1 copies, producing expr repeated exactly n times (requires expr to be non-empty, since Oracle treats '' as NULL).
      • SQLite: throws. SQLite has no REPEAT function and no safe single-expression workaround (the zeroblob/hex tricks that exist are fragile and only work for single-character pad values).

      Parameters

      Returns LiteralExpression & { $literal: string }