sm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.4.2

func Apply(f func(a mysql.SelectModApply)) mysql.SelectMod

func Columns

func Columns(names ...string) mysql.SelectMod

func ColumnsClause added in v0.8.0

func ColumnsClause(query string, args ...any) mysql.SelectMod

func ColumnsExpr added in v0.8.0

func ColumnsExpr(names ...litsql.Expression) mysql.SelectMod

func Distinct

func Distinct(on ...string) mysql.SelectMod

func DistinctExpr added in v0.8.0

func DistinctExpr(on ...litsql.Expression) mysql.SelectMod

func Except

func Except(q mysql.SelectQuery) mysql.SelectMod

func ExceptAll

func ExceptAll(q mysql.SelectQuery) mysql.SelectMod

func Having

func Having(condition string) mysql.SelectMod

func HavingClause added in v0.8.0

func HavingClause(query string, args ...any) mysql.SelectMod

func HavingExpr added in v0.8.0

func HavingExpr(condition litsql.Expression) mysql.SelectMod

func Intersect

func Intersect(q mysql.SelectQuery) mysql.SelectMod

func IntersectAll

func IntersectAll(q mysql.SelectQuery) mysql.SelectMod

func Limit

func Limit(count int) mysql.SelectMod

func LimitArg added in v0.8.0

func LimitArg(arg any) mysql.SelectMod

func LimitArgNamed added in v0.8.0

func LimitArgNamed(argumentName string) mysql.SelectMod

func LimitExpr added in v0.8.0

func LimitExpr(count litsql.Expression) mysql.SelectMod

func Offset

func Offset(count int) mysql.SelectMod

func OffsetArg added in v0.8.0

func OffsetArg(arg any) mysql.SelectMod

func OffsetArgNamed added in v0.8.0

func OffsetArgNamed(argumentName string) mysql.SelectMod

func OffsetExpr added in v0.8.0

func OffsetExpr(count litsql.Expression) mysql.SelectMod

func OrderBy

func OrderBy(names ...string) mysql.SelectMod

func OrderByExpr added in v0.8.0

func OrderByExpr(names ...litsql.Expression) mysql.SelectMod

func Union

func UnionAll

func UnionAll(q mysql.SelectQuery) mysql.SelectMod

func Where

func Where(condition string) mysql.SelectMod

func WhereClause added in v0.8.0

func WhereClause(query string, args ...any) mysql.SelectMod

func WhereExpr added in v0.8.0

func WhereExpr(condition litsql.Expression) mysql.SelectMod

Types

type FromChain

type FromChain = chain.From[tag.SelectTag]

func From

func From(table string) FromChain

func FromExpr added in v0.8.0

func FromExpr(table litsql.Expression) FromChain

func FromQquery added in v0.8.0

func FromQquery(q mysql.SelectQuery) FromChain

type GroupByChain

type GroupByChain = chain.GroupBy[tag.SelectTag]

func GroupBy

func GroupBy(columns ...string) GroupByChain

func GroupByExpr added in v0.8.0

func GroupByExpr(columns ...litsql.Expression) GroupByChain

type JoinChain

type JoinChain = chain.Join[tag.SelectTag]

func CrossJoin

func CrossJoin(table string) JoinChain

func CrossJoinExpr added in v0.8.0

func CrossJoinExpr(table litsql.Expression) JoinChain

func FullJoin

func FullJoin(table string) JoinChain

func FullJoinExpr added in v0.8.0

func FullJoinExpr(table litsql.Expression) JoinChain

func InnerJoin

func InnerJoin(table string) JoinChain

func InnerJoinExpr added in v0.8.0

func InnerJoinExpr(table litsql.Expression) JoinChain

func LeftJoin

func LeftJoin(table string) JoinChain

func LeftJoinExpr added in v0.8.0

func LeftJoinExpr(table litsql.Expression) JoinChain

func RightJoin

func RightJoin(table string) JoinChain

func RightJoinExpr added in v0.8.0

func RightJoinExpr(table litsql.Expression) JoinChain

func StraightJoin

func StraightJoin(table string) JoinChain

func StraightJoinExpr added in v0.8.0

func StraightJoinExpr(table litsql.Expression) JoinChain

type WindowChain

type WindowChain = chain.Window[tag.SelectTag]

func Window

func Window(name string) WindowChain

type WithChain

type WithChain = chain.With[tag.SelectTag]

func With

func With(name string, columns ...string) WithChain

func WithExpe added in v0.8.0

func WithExpe(name string, columns ...litsql.Expression) WithChain

Jump to

Keyboard shortcuts

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