mysql - Python-handler-socket (pyhs) update function example -


i'm using python client library handlersocket mysql plugin (https://bitbucket.org/excieve/pyhs/overview). can make insert , find requests, can't find example of how call manager.update() function. i've read through docs of library , googled lot, no luck. please give me code example how work update function.

i used code example find function (http://python-handler-socket.readthedocs.org/en/latest/usage.html#high-level) make update function call

# update mydb.test1 set cnt=5 id=1     hs.update('mydb', 'test1', '=', ['id', 'cnt'], ['1'], ['1', '5']) 

please put attention test1.id column integer, must search string '1'


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -