lightmysql
1.0.5
Paket Pymysql yang ditingkatkan, dibuat oleh yixiangzhilv.
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" })Untuk detail lebih lanjut, silakan periksa contoh.py
Maaf, tetapi dalam versi ini, Anda tidak dapat membuat meja dengan LightMysql.