lightmysql
1.0.5
由Yixiangzhilv製造的PymySQL的改進包裝。
pip3 install lightmysql
> >> import lightmysql
> >> conn = lightmysql . Connect ( host = "127.0.0.1" , user = "root" , password = "" , database = "yxzl" )
连接到 127.0 .0 .1 / yxzl 成功!当前用户为: root
> >> conn . insert ( "test" , { "name" : "Python-Test" , "age" : 15 })
> >> conn . get ( "test" )
[( 'Python-Test' , 15 )]
> >> conn . update ( "test" , changes = { "age" : "20" }, condition = { "name" : "Python-Test" })
> >> conn . delete ( "test" , condition = { "name" : "Python-Test" })有關更多詳細信息,請檢查example.py
抱歉,但是在此版本中,您無法使用LightMysQL創建表。