Documentation
¶
Index ¶
- func CrossJoin(e any) dialect.JoinChain[*dialect.UpdateQuery]
- func From(table any, joins ...dialect.JoinChain[*dialect.UpdateQuery]) dialect.FromChain[*dialect.UpdateQuery]
- func FromFunction(funcs ...*dialect.Function) bob.Expression
- func FullJoin(e any) dialect.JoinChain[*dialect.UpdateQuery]
- func InnerJoin(e any) dialect.JoinChain[*dialect.UpdateQuery]
- func LeftJoin(e any) dialect.JoinChain[*dialect.UpdateQuery]
- func Only() bob.Mod[*dialect.UpdateQuery]
- func Recursive(r bool) bob.Mod[*dialect.UpdateQuery]
- func Returning(clauses ...any) mods.Returning[*dialect.UpdateQuery]
- func RightJoin(e any) dialect.JoinChain[*dialect.UpdateQuery]
- func Set(sets ...bob.Expression) bob.Mod[*dialect.UpdateQuery]
- func SetCol(from string) mods.Set[*dialect.UpdateQuery]
- func SetCols(columns ...string) clause.SetCols[*dialect.UpdateQuery]
- func SetExpr(col bob.Expression) mods.Set[*dialect.UpdateQuery]
- func Table(name any) bob.Mod[*dialect.UpdateQuery]
- func TableAs(name any, alias string) bob.Mod[*dialect.UpdateQuery]
- func Where(e bob.Expression) mods.Where[*dialect.UpdateQuery]
- func WhereCurrentOf(cursor string) mods.WhereCurrentOf[*dialect.UpdateQuery]
- func With(name string, columns ...string) dialect.CTEChain[*dialect.UpdateQuery]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func From ¶
func From(table any, joins ...dialect.JoinChain[*dialect.UpdateQuery]) dialect.FromChain[*dialect.UpdateQuery]
func FromFunction ¶
func FromFunction(funcs ...*dialect.Function) bob.Expression
FromFunction returns an expression for um.From when the source is one or more table functions (ROWS FROM when multiple).
func Set ¶
func Set(sets ...bob.Expression) bob.Mod[*dialect.UpdateQuery]
func SetCol ¶ added in v0.23.0
func SetCol(from string) mods.Set[*dialect.UpdateQuery]
SetCol sets one column in UPDATE ... SET. The column name is quoted automatically. For qualified names or other expressions on the LHS, use SetExpr.
func SetCols ¶ added in v0.44.0
func SetCols(columns ...string) clause.SetCols[*dialect.UpdateQuery]
SetCols creates a multi-column setter: (columns...) = ROW(...) | (values...) | (subquery)
func SetExpr ¶ added in v0.45.0
func SetExpr(col bob.Expression) mods.Set[*dialect.UpdateQuery]
SetExpr is like SetCol but the column LHS is any expression (e.g. psql.Quote("t", "col")).
func Where ¶
func Where(e bob.Expression) mods.Where[*dialect.UpdateQuery]
func WhereCurrentOf ¶ added in v0.44.0
func WhereCurrentOf(cursor string) mods.WhereCurrentOf[*dialect.UpdateQuery]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.