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" })자세한 내용은 exames.py를 확인하십시오
죄송하지만이 버전에서는 LightMySQL이있는 테이블을 만들 수 없었습니다.