query

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Avg added in v0.6.1

type Avg struct {
	Field any
	Value float64
}

func (Avg) Aggregate added in v0.6.1

func (a Avg) Aggregate() enum.AggregateType

func (Avg) Attribute added in v0.7.0

func (a Avg) Attribute(b model.Body) model.Attribute

func (Avg) GetField added in v0.7.0

func (a Avg) GetField() any

func (*Avg) Scan added in v0.6.1

func (a *Avg) Scan(src any) error

type Count

type Count struct {
	Field any
	Value int64
}

func (Count) Aggregate

func (c Count) Aggregate() enum.AggregateType

func (Count) Attribute added in v0.7.0

func (c Count) Attribute(b model.Body) model.Attribute

func (Count) GetField added in v0.7.0

func (c Count) GetField() any

func (*Count) Scan

func (c *Count) Scan(src any) error

type Function

type Function[T any] struct {
	Field *T
	Type  enum.FunctionType
	Value T
}

func (Function[T]) Attribute added in v0.7.0

func (f Function[T]) Attribute(b model.Body) model.Attribute

func (Function[T]) GetField added in v0.7.0

func (f Function[T]) GetField() any

func (Function[T]) GetType

func (f Function[T]) GetType() enum.FunctionType

func (Function[T]) GetValue

func (f Function[T]) GetValue() any

func (*Function[T]) Scan

func (f *Function[T]) Scan(src any) error

type Max added in v0.6.1

type Max struct {
	Field any
	Value float64
}

func (Max) Aggregate added in v0.6.1

func (a Max) Aggregate() enum.AggregateType

func (Max) Attribute added in v0.7.0

func (m Max) Attribute(b model.Body) model.Attribute

func (Max) GetField added in v0.7.0

func (m Max) GetField() any

func (*Max) Scan added in v0.6.1

func (a *Max) Scan(src any) error

type Min added in v0.6.1

type Min struct {
	Field any
	Value float64
}

func (Min) Aggregate added in v0.6.1

func (a Min) Aggregate() enum.AggregateType

func (Min) Attribute added in v0.7.0

func (m Min) Attribute(b model.Body) model.Attribute

func (Min) GetField added in v0.7.0

func (m Min) GetField() any

func (*Min) Scan added in v0.6.1

func (a *Min) Scan(src any) error

type Sum added in v0.6.1

type Sum struct {
	Field any
	Value float64
}

func (Sum) Aggregate added in v0.6.1

func (a Sum) Aggregate() enum.AggregateType

func (Sum) Attribute added in v0.7.0

func (s Sum) Attribute(b model.Body) model.Attribute

func (Sum) GetField added in v0.7.0

func (s Sum) GetField() any

func (*Sum) Scan added in v0.6.1

func (a *Sum) Scan(src any) error

Directories

Path Synopsis
Deprecated: This package will be removed in next version.
Deprecated: This package will be removed in next version.

Jump to

Keyboard shortcuts

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