Documentation ¶
Index ¶
- func Apply[T any](f func(a sq.QueryModApply[T])) sq.QueryMod[T]
- func ConflictSet[T any](column string, arg any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetArgNamed[T any](column string, argumentName string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetClause[T any](query string, args ...any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetExpr[T any](column string, value litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetExprClause[T any](assignment litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetQuery[T, A any](column string, q isq.Query[A]) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictSetString[T any](column string, right string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictWhere[T any](condition string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictWhereClause[T any](query string, args ...any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func ConflictWhereExpr[T any](condition litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
- func Insert[T any](dialect litsql.Dialect, mods ...sq.QueryMod[T]) sq.Query[T]
- func Into[T any](name string, columns ...string) sq.QueryMod[T]
- func IntoAs[T any](name string, alias string, columns ...string) sq.QueryMod[T]
- func OnConflict[T any](columns ...string) chain.InsertConflictUpdate[T, imod.InsertConflictUpdateModTag]
- func OnConflictOnConstraint[T any](constraint string) chain.InsertConflictUpdate[T, imod.InsertConflictUpdateModTag]
- func OverridingSystem[T any]() sq.QueryMod[T]
- func OverridingUser[T any]() sq.QueryMod[T]
- func Query[T, A any](q isq.Query[A]) sq.QueryMod[T]
- func RawQuery[T any](rawQuery string, args ...any) sq.QueryMod[T]
- func RawQueryExpr[T any](rawQuery litsql.Expression) sq.QueryMod[T]
- func Returning[T any](clauses ...string) sq.QueryMod[T]
- func Values[T any](values ...any) sq.QueryMod[T]
- func ValuesArgNamed[T any](argumentNames ...string) sq.QueryMod[T]
- func ValuesExpr[T any](clauses ...litsql.Expression) sq.QueryMod[T]
- func ValuesString[T any](clauses ...string) sq.QueryMod[T]
- func With[T any](name string, columns ...string) chain.With[T]
- func WithExpr[T any](name string, columns ...litsql.Expression) chain.With[T]
- type InsertQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConflictSet ¶
func ConflictSet[T any](column string, arg any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetArgNamed ¶ added in v0.8.0
func ConflictSetArgNamed[T any](column string, argumentName string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetClause ¶ added in v0.8.0
func ConflictSetClause[T any](query string, args ...any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetExpr ¶ added in v0.8.0
func ConflictSetExpr[T any](column string, value litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetExprClause ¶ added in v0.8.0
func ConflictSetExprClause[T any](assignment litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetQuery ¶ added in v0.8.0
func ConflictSetQuery[T, A any](column string, q isq.Query[A]) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictSetString ¶ added in v0.8.0
func ConflictSetString[T any](column string, right string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictWhere ¶ added in v0.9.1
func ConflictWhere[T any](condition string) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictWhereClause ¶ added in v0.9.1
func ConflictWhereClause[T any](query string, args ...any) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func ConflictWhereExpr ¶ added in v0.9.1
func ConflictWhereExpr[T any](condition litsql.Expression) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]
func OnConflict ¶
func OnConflict[T any](columns ...string) chain.InsertConflictUpdate[T, imod.InsertConflictUpdateModTag]
func OnConflictOnConstraint ¶
func OnConflictOnConstraint[T any](constraint string) chain.InsertConflictUpdate[T, imod.InsertConflictUpdateModTag]
func OverridingSystem ¶
func OverridingUser ¶
func RawQueryExpr ¶ added in v0.8.1
func RawQueryExpr[T any](rawQuery litsql.Expression) sq.QueryMod[T]
func ValuesArgNamed ¶ added in v0.8.0
func ValuesExpr ¶ added in v0.8.0
func ValuesExpr[T any](clauses ...litsql.Expression) sq.QueryMod[T]
Types ¶
type InsertQuery ¶
type InsertQuery[T any] struct { *isq.DefaultQuery[T] }
Click to show internal directories.
Click to hide internal directories.