Open SamuelMarks opened 3 weeks ago
It would be great to have a printf. I'm doing fancy escaping stuff where I want to evaluate a variable and quote it so PostgreSQL can execute the query correctly.
At least basic printf syntax
printf '%s \'%s\' "%s"' 'foo haz' "${can}" bar
Alternatives like std::string::Concat are unfriendly:
std::string::Concat
$ duck a = set 5 c = concat '"' ${a} '"' echo ${c} '"'5'"' q = set ' e = concat ${q} ${a} ${q} echo ${e} '5'
@SamuelMarks good idea. would you like to PR it?
Feature Description
It would be great to have a printf. I'm doing fancy escaping stuff where I want to evaluate a variable and quote it so PostgreSQL can execute the query correctly.
Describe The Solution You'd Like
At least basic printf syntax
Code Sample
Alternatives like
std::string::Concat
are unfriendly: