I am trying to format a column which is string type with another column which is json or array type.
For example;
String column is like "I am a %s, and I am very good %s" and array like ["student", "at math"].
or
String like "I am a {key1}, and I am very good {key2}" and json like {"key1": "student", "key2": "at math"}
I want to format string column with this second column.
Is it possible to do something like this with PostgreSQL also if it is possible with SQLAlchemy that is better for me.