_select

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asc

func Asc(name common.Field) orderBy

func Desc

func Desc(name common.Field) orderBy

func NewQuery

func NewQuery(distinct bool) *query

Types

type OrderBy

type OrderBy = common.OrderBy

type Query

type Query interface {
	// AllFields selects all fields
	AllFields() fieldsQuery
	// Fields selects fully-qualified fields (table name and column)
	// Useful in case of conflicting names with joined tables
	Fields(...common2.Field) fieldsQuery
	// FieldsByName selects fields only with their name
	// More handy for most cases
	FieldsByName(names ...common2.FieldName) fieldsQuery
}

Jump to

Keyboard shortcuts

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