Documentation
¶
Index ¶
- func Columns(clauses ...any) bob.Mod[*dialect.SelectQuery]
- func CrossJoin(e any) dialect.JoinChain[*dialect.SelectQuery]
- func Cube(groups ...any) clause.GroupingSet
- func Distinct(on ...any) bob.Mod[*dialect.SelectQuery]
- func Except(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func ExceptAll(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func Fetch(count any, withTies bool) bob.Mod[*dialect.SelectQuery]
- func FetchCombined(count any, withTies bool) bob.Mod[*dialect.SelectQuery]
- func ForKeyShare(tables ...any) dialect.LockChain[*dialect.SelectQuery]
- func ForNoKeyUpdate(tables ...any) dialect.LockChain[*dialect.SelectQuery]
- func ForShare(tables ...any) dialect.LockChain[*dialect.SelectQuery]
- func ForUpdate(tables ...any) dialect.LockChain[*dialect.SelectQuery]
- func From(table any, joins ...dialect.JoinChain[*dialect.SelectQuery]) dialect.FromChain[*dialect.SelectQuery]
- func FromFunction(funcs ...*dialect.Function) bob.Expression
- func FullJoin(e any) dialect.JoinChain[*dialect.SelectQuery]
- func GroupBy(e any) bob.Mod[*dialect.SelectQuery]
- func GroupByDistinct(distinct bool) bob.Mod[*dialect.SelectQuery]
- func Grouping(groups ...any) clause.Grouping
- func GroupingSets(groups ...any) clause.GroupingSet
- func Having(e any) bob.Mod[*dialect.SelectQuery]
- func InnerJoin(e any) dialect.JoinChain[*dialect.SelectQuery]
- func Intersect(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func IntersectAll(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func LeftJoin(e any) dialect.JoinChain[*dialect.SelectQuery]
- func Limit(count any) bob.Mod[*dialect.SelectQuery]
- func LimitCombined(count any) bob.Mod[*dialect.SelectQuery]
- func Offset(count any) bob.Mod[*dialect.SelectQuery]
- func OffsetCombined(count any) bob.Mod[*dialect.SelectQuery]
- func OrderBy(e any) dialect.OrderBy[*dialect.SelectQuery]
- func OrderCombined(e any) dialect.OrderCombined
- func Recursive(r bool) bob.Mod[*dialect.SelectQuery]
- func RightJoin(e any) dialect.JoinChain[*dialect.SelectQuery]
- func Rollup(groups ...any) clause.GroupingSet
- func Union(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func UnionAll(q bob.Query) bob.Mod[*dialect.SelectQuery]
- func Where(e bob.Expression) mods.Where[*dialect.SelectQuery]
- func Window(name string, winMods ...bob.Mod[*clause.Window]) bob.Mod[*dialect.SelectQuery]
- func With(name string, columns ...string) dialect.CTEChain[*dialect.SelectQuery]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cube ¶ added in v0.44.0
func Cube(groups ...any) clause.GroupingSet
func FetchCombined ¶ added in v0.39.0
To apply fetch to the result of a UNION, INTERSECT, or EXCEPT query
func ForKeyShare ¶
func ForKeyShare(tables ...any) dialect.LockChain[*dialect.SelectQuery]
ForKeyShare acquires a key-share lock on selected tables.
func ForNoKeyUpdate ¶
func ForNoKeyUpdate(tables ...any) dialect.LockChain[*dialect.SelectQuery]
ForNoKeyUpdate locks selected tables without affecting key columns.
func ForShare ¶
func ForShare(tables ...any) dialect.LockChain[*dialect.SelectQuery]
ForShare acquires a shared lock on selected tables.
func ForUpdate ¶
func ForUpdate(tables ...any) dialect.LockChain[*dialect.SelectQuery]
ForUpdate locks selected tables. Pass table names as psql.Quote(...) or another Expression.
func From ¶
func From(table any, joins ...dialect.JoinChain[*dialect.SelectQuery]) dialect.FromChain[*dialect.SelectQuery]
From sets the query source. Pass a table name as a string (unquoted literal) or use psql.Quote(...) / a subquery Expression for quoted or qualified names. Optional joins are attached to this from_item.
func FromFunction ¶
func FromFunction(funcs ...*dialect.Function) bob.Expression
FromFunction returns an expression for sm.From when the source is one or more table functions (ROWS FROM when multiple).
func GroupByDistinct ¶
func GroupByDistinct(distinct bool) bob.Mod[*dialect.SelectQuery]
func GroupingSets ¶ added in v0.44.0
func GroupingSets(groups ...any) clause.GroupingSet
func IntersectAll ¶
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 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 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 Rollup ¶ added in v0.44.0
func Rollup(groups ...any) clause.GroupingSet
func Where ¶
func Where(e bob.Expression) mods.Where[*dialect.SelectQuery]
Types ¶
This section is empty.