Function lpad_fill

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

Extends the string to the specified length by prepending the characters fill. If the string is already longer than the specified length, it is truncated on the right.

ยงExample

query T
select lpad('hi', 5, 'xy');
----
xyxhi

query T
select lpad('hi', 5, '');
----
hi