Created
July 4, 2017 04:33
-
-
Save marianogonzalez/5a84a4e55853c49ed1d389c132b6ab29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<db:update config-ref=”db”> | |
<db:sql>UPDATE ACCOUNT set BALANCE = BALANCE - :money where ID = :source</db:sql> | |
<db:input-parameters>#[{‘money’ : payload.money, ‘source’: payload.source}]</db:input-parameters> | |
</db:update> | |
<db:update config-ref=”db”> | |
<db:sql>UPDATE ACCOUNT set BALANCE = BALANCE + :money where ID = :target</db:sql> | |
<db:input-parameters>#[{‘money’ : payload.money, ‘target’’: payload.target}]</db:input-parameters> | |
</db:update> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment