fluentpdo icon indicating copy to clipboard operation
fluentpdo copied to clipboard

Returning query statement?

Open MxRay opened this issue 7 years ago • 1 comments

Hi, I'd like to ask if this kind of query is possible with this lib:

UPDATE partneri_settings_voucher
SET last_vs=last_vs+1
WHERE id_partner='abc'
RETURNING last_vs

What to do with int increments inside query without chaining select->update->select? Maybe add $db->returning($column); method?

MxRay avatar Dec 01 '17 13:12 MxRay

returning is not a currently supported method, it's something we can definitely add 👍

cbornhoft avatar Dec 05 '17 14:12 cbornhoft