gluasql_mysql

package
v0.0.0-...-344b155 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CLIENT_TYPENAME = "mysql{client}"
)

Variables

View Source
var ErrConnectionString = errors.New("options or connection string excepted")

errors

Functions

func Loader

func Loader(L *lua.LState) int

func ParseConnectionString

func ParseConnectionString(cs interface{}, timeout time.Duration) (driverName string, dsn string, err error)

ParseConnectionString parse options or connection string to golang sql driverName and dsn

Types

type Client

type Client struct {
	DB      *sql.DB
	Timeout time.Duration
}

Client mysql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL