Shopify / go-lua

A Lua VM in Go
MIT License
3.13k stars 190 forks source link

How to add luasql module? #101

Closed vieyang closed 5 years ago

vieyang commented 5 years ago

when my lua file reuqire mysql, it always show me error, how to import/use it?

mysql = require "luasql.mysql"

local env  = mysql.mysql()
local conn = env:connect('dbname','dbuer','password','dbhost')

print(env,conn)