Documentation ¶
Overview ¶
Package db implements golang package db functionality for lua.
Index ¶
Constants ¶
View Source
const ( // max idle connections MaxIdleConns = 1 // max open connections MaxOpenConns = 1 )
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec(): lua db_ud:exec(query) returns ({rows_affected=number, last_insert_id=number}, err)
func Preload ¶
Preload adds db to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:
local db = require("db")
func RegisterDriver ¶
func RegisterDriver(driver string, i luaDB)
RegisterDriver(): register sql driver
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.