sql-bricks-postgres
sql-bricks-postgres copied to clipboard
doUpdate argument is an array not string
In the document there is an example as follow:
.onConflict('name').doUpdate('age')
but actually it should be:
.onConflict('name').doUpdate(['age'])
do I miss a thing?
Can make both work, I guess. Do you want to create a PR? Also lacking tests here :(.
I took a look at the code. Actually the code is more complicated for my limited time to understand and fix. But I can fix the example in Documentation.