[DBIx-Class-Devel] [dbsrgits/sql-abstract] add reusable _update_set_values method, consistent with _insert_values (#12)

Sebastian Riedel notifications at github.com
Fri Jan 26 19:04:08 GMT 2018


As discussed on IRC, this patch adds a reusable `_update_set_values` method that can be reused by `SQL::Abstract` extensions, just like `_insert_values`. The specific use case i have in mind for this will be PostgreSQL upserts, which rely on `INSERT ... ON CONFLICT DO UPDATE SET ...` queries.
You can view, comment on, or merge this pull request online at:

  https://github.com/dbsrgits/sql-abstract/pull/12

-- Commit Summary --

  * add reusable _update_set_values method, consistent with _insert_values

-- File Changes --

    M lib/SQL/Abstract.pm (41)

-- Patch Links --

https://github.com/dbsrgits/sql-abstract/pull/12.patch
https://github.com/dbsrgits/sql-abstract/pull/12.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-abstract/pull/12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20180126/7d9f9dc6/attachment.htm>


More information about the DBIx-Class-Devel mailing list