hugsql

2020-10-22T13:19:14.004400Z

Hello huggers 🙂 I spent a while last night writing this take on PostgreSQL upsert. It works fine. Would you use it ? I thought of "improving" it using the params map "as is", assuming (keys params) returns what cols is bound to, and (vals params) returns what vals is bound to. Alternative improvement: add a third table param to make this generally generic. I'm not sure how to conciliate both (meta table on params ? cryptic ... but workable)