Documentation
¶
Index ¶
- func Excluded(column string) dialect.Expression
- func Into(name any, columns ...string) bob.Mod[*dialect.InsertQuery]
- func IntoAs(name any, alias string, columns ...string) bob.Mod[*dialect.InsertQuery]
- func OnConflict(columns ...any) mods.Conflict[*dialect.InsertQuery]
- func OrAbort() bob.Mod[*dialect.InsertQuery]
- func OrFail() bob.Mod[*dialect.InsertQuery]
- func OrIgnore() bob.Mod[*dialect.InsertQuery]
- func OrReplace() bob.Mod[*dialect.InsertQuery]
- func OrRollback() bob.Mod[*dialect.InsertQuery]
- func Query(q bob.Query) bob.Mod[*dialect.InsertQuery]
- func Recursive(r bool) bob.Mod[*dialect.InsertQuery]
- func Returning(clauses ...any) bob.Mod[*dialect.InsertQuery]
- func Rows(rows ...[]bob.Expression) bob.Mod[*dialect.InsertQuery]
- func Set(sets ...bob.Expression) bob.Mod[*clause.ConflictClause]
- func SetCol(from string) mods.Set[*clause.ConflictClause]
- func SetExcluded(cols ...string) bob.Mod[*clause.ConflictClause]
- func SetExpr(col bob.Expression) mods.Set[*clause.ConflictClause]
- func Values(clauses ...bob.Expression) bob.Mod[*dialect.InsertQuery]
- func Where(e bob.Expression) bob.Mod[*clause.ConflictClause]
- func With(name string, columns ...string) dialect.CTEChain[*dialect.InsertQuery]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Excluded ¶ added in v0.44.0
func Excluded(column string) dialect.Expression
Excluded references a column from the EXCLUDED pseudo-table in ON CONFLICT DO UPDATE.
func OnConflict ¶
func OnConflict(columns ...any) mods.Conflict[*dialect.InsertQuery]
func OrRollback ¶
func OrRollback() bob.Mod[*dialect.InsertQuery]
func Rows ¶
func Rows(rows ...[]bob.Expression) bob.Mod[*dialect.InsertQuery]
func Set ¶ added in v0.23.0
func Set(sets ...bob.Expression) bob.Mod[*clause.ConflictClause]
func SetCol ¶ added in v0.23.0
func SetCol(from string) mods.Set[*clause.ConflictClause]
SetCol sets one column in ON CONFLICT DO UPDATE SET. The column name is quoted automatically. For qualified names or other expressions on the LHS, use SetExpr.
func SetExcluded ¶ added in v0.23.0
func SetExcluded(cols ...string) bob.Mod[*clause.ConflictClause]
func SetExpr ¶ added in v0.45.0
func SetExpr(col bob.Expression) mods.Set[*clause.ConflictClause]
SetExpr is like SetCol but the column LHS is any expression (e.g. sqlite.Quote("t", "col")).
func Values ¶
func Values(clauses ...bob.Expression) bob.Mod[*dialect.InsertQuery]
func Where ¶ added in v0.23.0
func Where(e bob.Expression) bob.Mod[*clause.ConflictClause]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.