package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Apr 23, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Argument is used to pass a value to a function inside a where clause
Example ¶
goe.Select(db.Animal).From(db.Animal).Where(where.Equals(function.ToUpper(&db.Animal.Name), function.Argument("CAT"))).AsSlice()
ToLower uses database function to converts the target string to lowercase
Example ¶
goe.Select(&struct {
LowerName *query.Function[string]
}{
LowerName: function.ToLower(&db.Animal.Name),
}).From(db.Animal)
ToUpper uses database function to converts the target string to uppercase
Example ¶
goe.Select(&struct {
UpperName *query.Function[string]
}{
UpperName: function.ToUpper(&db.Animal.Name),
}).From(db.Animal)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.