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を使用してテーブルを作成できませんでした。