local dba = require("dba")
local db = dba.new()
db:connect("mysql", "user:password@tcp4(127.0.0.1:3306)/mydb?charset=utf8")
local myQuery = db:query("select * from customers where customerNumber > {:customerNumber} limit {:limit};")
myQuery:bind({
customerNumber = "100",
limit = "50",
})
local result = myQuery:run()
db:close()
-
Notifications
You must be signed in to change notification settings - Fork 0
epikur-io/glua-dba
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple SQL database access for gopher-lua
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published