Documentation ¶
Overview ¶
Package db implements golang package db functionality for lua.
Index ¶
- Constants
- func Close(L *lua.LState) int
- func Command(L *lua.LState) int
- func Exec(L *lua.LState) int
- func Loader(L *lua.LState) int
- func Open(L *lua.LState) int
- func Preload(L *lua.LState)
- func Query(L *lua.LState) int
- func RegisterDriver(driver string, i luaDB)
- func Stmt(L *lua.LState) int
- func StmtClose(L *lua.LState) int
- func StmtExec(L *lua.LState) int
- func StmtQuery(L *lua.LState) int
Constants ¶
View Source
const (
// max open connections
MaxOpenConns = 1
)
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open lua db.open(driver, connection_string, config) returns (db_ud, err) config table:
{ shared=false, max_connections=X, read_only=false }
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.