Skip to content

LiXizhi/luasql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

luasql

mysql and sqlite3 module for NPL runtime

How to Install

On linux platform, mysql client is by default installed when you build NPLRuntime from source code. You should find a libluasql.so in NPL runtime directory.

For windows platform, download and install here [[https://github.com/LiXizhi/luasql/releases/tag/v1.0]]

How to Use

Once you have installed those dlls, you can use it like below

NPL.load("(gl)script/ide/mysql/mysql.lua");
local MySql = commonlib.gettable("System.Database.MySql");
local mysql_db = MySql:new():init(db_user, db_password, db_name, db_host, db_port);

About

mysql and sqlite3 module for NPL runtime

Resources

Stars

Watchers

Forks

Packages

No packages published