Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Riak pre-commit hook in Erlang?

How would I write a pre-commit hook to change all of the letters in the value of my key/value pairs to be ALL UPPERCASE in a particular bucket?

like image 569
Hal Eisen Avatar asked Jul 13 '26 01:07

Hal Eisen


1 Answers

Using this example of pre-commit hook: https://github.com/basho/riak_function_contrib/blob/master/hooks/pre-commit/js/validate_json.js, you should be very close to a solution, using the standard value.toUpperCase();.

like image 94
matehat Avatar answered Jul 15 '26 15:07

matehat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!