Function rpad

Source
pub fn rpad(s: &str, length: i32, writer: &mut impl Write)
Expand description

Extends the given string on the right until it is at least the specified length, using the specified fill character (or a space by default).

ยงExample

query T
select rpad('abc', 5);
----
abc

query T
select rpad('abcdef', 3);
----
abc