mysql and sqlite3 module for NPL runtime
On
linux
platform, mysql client is by default installed when you build NPLRuntime from source code. You should find alibluasql.so
in NPL runtime directory.
For windows platform, download and install here [[https://github.com/LiXizhi/luasql/releases/tag/v1.0]]
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);