function

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argument

func Argument[T any](value T) function[T]

Argument is used to pass a value to a function inside a where clause

Example

goe.Select(db.Animal).Where(where.Equals(function.ToUpper(&db.Animal.Name), function.Argument("CAT"))).AsSlice()

func ToLower

func ToLower(target *string) *function[string]

ToLower uses database function to converts the target string to lowercase

Example

goe.Select(&struct {
	LowerName *function[string]
}{
	LowerName: function.ToLower(&db.Animal.Name),
})

func ToUpper

func ToUpper(target *string) *function[string]

ToUpper uses database function to converts the target string to uppercase

Example

goe.Select(&struct {
	UpperName *function[string]
}{
	UpperName: function.ToUpper(&db.Animal.Name),
})

Types

This section is empty.

Jump to

Keyboard shortcuts

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