Help us shape the future of Go! Take the 2026 Go Developer Survey

environment

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	// contains filtered or unexported fields
}

Environment contains information about the context in which the expression is evaluated.

func New

func New(db *database.Database, tx *database.Transaction, params []Param, row row.Row) *Environment

func (*Environment) Clone added in v0.18.0

func (e *Environment) Clone(r row.Row) *Environment

func (*Environment) GetDB

func (e *Environment) GetDB() *database.Database

func (*Environment) GetParamByIndex

func (e *Environment) GetParamByIndex(pos int) (types.Value, error)

func (*Environment) GetRow

func (e *Environment) GetRow() (row.Row, bool)

func (*Environment) GetTx

func (e *Environment) GetTx() *database.Transaction

type Param

type Param struct {
	// Name of the param
	Name string

	// Value is the parameter value.
	Value any
}

A Param represents a parameter passed by the user to the statement.

Jump to

Keyboard shortcuts

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