pgapp
pgapp copied to clipboard
Support maps for args
I would say, it needs to be backwards-compatible
That's a good point. I meant to make this against my own fork :/
At the moment pgapp points to the devel branch for epgsql. I ran into the examples for this repo breaking when I went to use this.
I'll see if I can get some time to make this backwards compatible and update the examples as well.
@seriyps updated, please let me know what you think!
It's fine. Another approach would be to just convert proplist to map and use map after that, like it was done in epgsql:
https://github.com/epgsql/epgsql/blob/5304480f24789d370fb637dcc649d12688f525ff/src/epgsql.erl#L155
https://github.com/epgsql/epgsql/blob/5304480f24789d370fb637dcc649d12688f525ff/src/epgsql.erl#L455-L459
But I'm ok with your solution as well. Maybe @davidw have smth to add?