Documentation
¶
Index ¶
- Constants
- func DefinerListToList[T attrs.Definer](list []attrs.Definer) []T
- func DriverValue(arg any) (driver.Value, error)
- func GetFromAttrs[T any](attrMap map[string]any, key string) (T, bool)
- func GetRelatedName(f attrs.Field, default_ string) string
- func ListUnpack(list ...any) []any
- func NewDefiner[T attrs.Definer]() T
- func NewObjectFromIface(obj attrs.Definer) attrs.Definer
- func SqlxDriverName(db drivers.Database) string
- func WalkFields(m attrs.Definer, column string, aliasGen *alias.Generator) (definer attrs.Definer, parent attrs.Definer, f attrs.Field, chain []string, ...)
- type BaseSet
- type OrderedSet
- type QueryInfo
- type Set
Constants ¶
View Source
const (
CACHE_TRAVERSAL_RESULTS = false
)
Variables ¶
This section is empty.
Functions ¶
func DriverValue ¶
driverValue prepares the value for the driver to be used in a query. it makes sure that the value adheres to the driver.Value interface.
func ListUnpack ¶
func NewDefiner ¶
func SqlxDriverName ¶
Types ¶
type BaseSet ¶
type BaseSet[E comparable] map[E]struct{}
func NewSet ¶
func NewSet[E comparable](s ...E) BaseSet[E]
type OrderedSet ¶
type OrderedSet[E comparable] struct { // contains filtered or unexported fields }
func NewOrderedSet ¶
func NewOrderedSet[E comparable](elements ...E) *OrderedSet[E]
func (*OrderedSet[E]) Add ¶
func (s *OrderedSet[E]) Add(e ...E)
func (*OrderedSet[E]) Clear ¶
func (s *OrderedSet[E]) Clear()
func (*OrderedSet[E]) Contains ¶
func (s *OrderedSet[E]) Contains(e E) bool
func (*OrderedSet[E]) Len ¶
func (s *OrderedSet[E]) Len() int
func (*OrderedSet[E]) Remove ¶
func (s *OrderedSet[E]) Remove(e E)
func (*OrderedSet[E]) Values ¶
func (s *OrderedSet[E]) Values() []E
type QueryInfo ¶
type QueryInfo struct { DatabaseName string // The name of the database connection DB drivers.Database DBX func(string) string SqlxDriver string }
func GetQueryInfo ¶
type Set ¶
type Set[E comparable] interface { Contains(e E) bool Add(e ...E) Remove(e E) Clear() Values() []E Len() int }
Click to show internal directories.
Click to hide internal directories.