myfunc

package
v0.0.0-...-be912e8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtraBuiltIns = []sql.Function{
	sql.Function0{Name: "ps_current_thread_id", Fn: NewPSCurrentThreadID},
}

Functions

func NewPSCurrentThreadID

func NewPSCurrentThreadID() sql.Expression

Types

type PSCurrentThreadID

type PSCurrentThreadID struct {
	function.NoArgFunc
}

func (PSCurrentThreadID) CollationCoercibility

func (PSCurrentThreadID) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte)

CollationCoercibility implements the interface sql.CollationCoercible.

func (PSCurrentThreadID) Description

func (c PSCurrentThreadID) Description() string

Description implements sql.FunctionExpression

func (PSCurrentThreadID) Eval

func (c PSCurrentThreadID) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements sql.Expression

func (PSCurrentThreadID) FunctionName

func (c PSCurrentThreadID) FunctionName() string

FunctionName implements sql.FunctionExpression

func (PSCurrentThreadID) IsNonDeterministic

func (c PSCurrentThreadID) IsNonDeterministic() bool

func (PSCurrentThreadID) WithChildren

func (c PSCurrentThreadID) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements sql.Expression

Jump to

Keyboard shortcuts

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