connectAndQuery API
commit805dad6ef30fbe33d814e90f1fe425cfac746de8
authorAjanthan Asogamoorthy <aasogamo@fb.com>
Thu, 23 Feb 2017 20:10:06 +0000 (23 12:10 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 23 Feb 2017 20:29:22 +0000 (23 12:29 -0800)
treeb6d58c46e8f770bd6efba2f9794055d9c4bf4b34
parentd548377a0287f68ca3b552c346d717c437b61cf0
connectAndQuery API

Summary: clients sometimes create connections and then don't use them for a while which results in the connections timing out. In simple cases where the client wants to execute a single set of queries on a connection and don't need a persistent connection we can give them something that will create the connection and execute the query immediately after.

Reviewed By: anca-agape

Differential Revision: D4544949

fbshipit-source-id: 5b46823106a566191a957a813a03e3f2e2e38e49
hphp/hack/hhi/stdlib/builtins_async_mysql.hhi
hphp/runtime/ext/async_mysql/ext_async_mysql.cpp
hphp/runtime/ext/async_mysql/ext_async_mysql.h
hphp/runtime/ext/async_mysql/ext_async_mysql.php