environment

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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) CloneWithRow added in v0.17.0

func (e *Environment) CloneWithRow(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) GetParamByName

func (e *Environment) GetParamByName(name string) (v types.Value, err 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