mysql driver for lua
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lualib-src
lualib
test
.gitignore
Makefile
README.md

README.md

mysql driver for lua


在lua中操作mysql,封装基本的操作接口。

操作接口:

  • 创建连接:mysql.connect (host,user,pass,dbname,dbport)
  • 关闭连接:db:close()
  • 查询:db:query(sql)
  • 插入:db:insert(sql)
  • 更新:db:update(sql)
  • 设置语言:db:character_set(character_type)