sm

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Columns

func Columns(clauses ...any) bob.Mod[*dialect.SelectQuery]

func Distinct

func Distinct(on ...any) bob.Mod[*dialect.SelectQuery]

func Except

func Except(q bob.Query) bob.Mod[*dialect.SelectQuery]

func ExceptAll

func ExceptAll(q bob.Query) bob.Mod[*dialect.SelectQuery]

func Fetch

func Fetch(count any, withTies bool) bob.Mod[*dialect.SelectQuery]

func FetchCombined added in v0.39.0

func FetchCombined(count any, withTies bool) bob.Mod[*dialect.SelectQuery]

To apply fetch to the result of a UNION, INTERSECT, or EXCEPT query

func ForKeyShare

func ForKeyShare(tables ...string) dialect.LockChain[*dialect.SelectQuery]

func ForNoKeyUpdate

func ForNoKeyUpdate(tables ...string) dialect.LockChain[*dialect.SelectQuery]

func ForShare

func ForShare(tables ...string) dialect.LockChain[*dialect.SelectQuery]

func ForUpdate

func ForUpdate(tables ...string) dialect.LockChain[*dialect.SelectQuery]

func From

func From(table any) dialect.FromChain[*dialect.SelectQuery]

func FromFunction

func FromFunction(funcs ...*dialect.Function) dialect.FromChain[*dialect.SelectQuery]

func FullJoin

func FullJoin(e any) dialect.JoinChain[*dialect.SelectQuery]

func GroupBy

func GroupBy(e any) bob.Mod[*dialect.SelectQuery]

func GroupByDistinct

func GroupByDistinct(distinct bool) bob.Mod[*dialect.SelectQuery]

func Having

func Having(e any) bob.Mod[*dialect.SelectQuery]

func InnerJoin

func InnerJoin(e any) dialect.JoinChain[*dialect.SelectQuery]

func Intersect

func Intersect(q bob.Query) bob.Mod[*dialect.SelectQuery]

func IntersectAll

func IntersectAll(q bob.Query) bob.Mod[*dialect.SelectQuery]

func LeftJoin

func LeftJoin(e any) dialect.JoinChain[*dialect.SelectQuery]

func Limit

func Limit(count any) bob.Mod[*dialect.SelectQuery]

func LimitCombined added in v0.39.0

func LimitCombined(count any) bob.Mod[*dialect.SelectQuery]

To apply limit to the result of a UNION, INTERSECT, or EXCEPT query

func Offset

func Offset(count any) bob.Mod[*dialect.SelectQuery]

func OffsetCombined added in v0.39.0

func OffsetCombined(count any) bob.Mod[*dialect.SelectQuery]

To apply offset to the result of a UNION, INTERSECT, or EXCEPT query

func OrderBy

func OrderBy(e any) dialect.OrderBy[*dialect.SelectQuery]

func OrderCombined added in v0.39.0

func OrderCombined(e any) dialect.OrderCombined

To apply order to the result of a UNION, INTERSECT, or EXCEPT query

func Recursive

func Recursive(r bool) bob.Mod[*dialect.SelectQuery]

func RightJoin

func RightJoin(e any) dialect.JoinChain[*dialect.SelectQuery]

func Union

func Union(q bob.Query) bob.Mod[*dialect.SelectQuery]

func UnionAll

func UnionAll(q bob.Query) bob.Mod[*dialect.SelectQuery]

func Window

func Window(name string, winMods ...bob.Mod[*clause.Window]) bob.Mod[*dialect.SelectQuery]

func With

func With(name string, columns ...string) dialect.CTEChain[*dialect.SelectQuery]

Types

This section is empty.

Jump to

Keyboard shortcuts

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