groupby

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteGroupByColumns

func WriteGroupByColumns(sw io.StringWriter, columns []*expressions.Column) error

WriteColumns writes a group by clause to the given writer.

Types

type Clause

type Clause struct {
	// contains filtered or unexported fields
}

Clause represents a group by clause.

func New

func New(grouping Grouping) *Clause

New creates a new group by clause.

func (*Clause) Type

func (*Clause) Type() clauses.ClauseType

func (*Clause) WriteTo

func (c *Clause) WriteTo(sw io.StringWriter) error

type ColumnGrouping

type ColumnGrouping []*expressions.Column

ColumnGrouping represents a group by clause with columns

func (ColumnGrouping) WriteTo

func (c ColumnGrouping) WriteTo(sw io.StringWriter) error

type Grouping

type Grouping interface {
	expressions.Expression
	// contains filtered or unexported methods
}

Grouping represents how to group by.

Jump to

Keyboard shortcuts

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