Skip to content

epikur-io/glua-dba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple database access for gopher-lua

Example

	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()

About

Simple SQL database access for gopher-lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages