mssql

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(L *lua.LState)

Load makes functions related to building a library of Lua code available

Types

type LValueWrapper

type LValueWrapper struct {
	LValue lua.LValue
}

LValueWrapper decorates lua.LValue to help retieve values from the database.

func (*LValueWrapper) Scan

func (w *LValueWrapper) Scan(value any) error

Scan implements the sql.Scanner interface for database deserialization.

type LValueWrappers

type LValueWrappers []LValueWrapper

LValueWrappers is a convenience type to easily map to a slice of lua.LValue

func (LValueWrappers) Interfaces

func (w LValueWrappers) Interfaces() (s []any)

Interfaces returns a slice of any values from the given LValueWrappers

func (LValueWrappers) Unwrap

func (w LValueWrappers) Unwrap() (s []lua.LValue)

Unwrap produces a slice of lua.LValue from the given LValueWrappers

Jump to

Keyboard shortcuts

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