支持HandlerSocket MySQL插件的Python库 python-handler-socket

jopen 13年前
     <span style="font-weight:bold;">pyhs (python-handler-socket)</span> 是一个支持 HandlerSocket MySQL 插件的Python客户端库。相比传统的 MySQL for Python,性能接近提高了一倍!    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324528181608" target="_blank">http://www.open-open.com/lib/view/home/1324528181608</a></p>    <br />    <br />    <div id="p_fullcontent" class="detail">     <p><a href="/misc/goto?guid=4959499647620331229" target="_blank"><span style="font-weight:bold;">MySQL for Python</span> </a><span><span>是 Python 语言连接 MySQL 数据库的接口,MySQLdb</span>为</span><span>Python</span>提供了<span>MySQL</span>支持,它符合<span>Python DB API</span>版本<span>2.0</span>的要求</p>     <p>代码示例:</p>     <pre>import _mysq db=_mysql.connect(host="outhouse",port=3307,passwd="moonpie",db="thangs")  db.query("""SELECT spam, eggs, sausage FROM breakfast  WHERE price < 5""")</pre>    </div>    <a href="/misc/goto?guid=4959499647774450426" target="_blank"><span style="font-weight:bold;">HandlerSocket </span></a>是MySQL的一个插件,用于跳过MySQL的SQL层面,直接访问内部的InnoDB存储引擎。    <br />    <br />    <br />