Answer the question
In order to leave comments, you need to log in
How to pass values to a request?
All fight
I have, for example, such a map:
m = {"a": 1, "b": 2, "c": 3, "d": 4}
I need to unpack it into a string in this format:
inserto into table la ("a", "b", "c", "d") values (1,2,3,4)
now I do it simply and stupidly, I run through the entire map in a loop and do +:
for key, value := range tags {
temp_columns = temp_columns + "\"" + key + "\"" + ","
temp_values = temp_values + "'" + value + "'" + ","
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question