pub fn lpad(s: &str, length: i32, writer: &mut impl Write)
Expand description
Extends the given string on the left until it is at least the specified length, using the specified fill character (or a space by default).
ยงExample
query T
select lpad('abc', 5);
----
abc
query T
select lpad('abcdef', 3);
----
abc