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, CHAIN any](columns ...string) *ichain.InsertConflictUpdateChain[T, CHAIN]
- func OnConflictOnConstraint[T, CHAIN any](constraint string) *ichain.InsertConflictUpdateChain[T, CHAIN]
- func OnDuplicateKeySet[T any](column string, arg any) sq.QueryMod[T]
- func OnDuplicateKeySetArgNamed[T any](column string, argumentName string) sq.QueryMod[T]
- func OnDuplicateKeySetClause[T any](query string, args ...any) sq.QueryMod[T]
- func OnDuplicateKeySetExpr[T any](column string, value litsql.Expression) sq.QueryMod[T]
- func OnDuplicateKeySetExprClause[T any](assignment litsql.Expression) sq.QueryMod[T]
- func OnDuplicateKeySetQuery[T, A any](column string, q isq.Query[A]) sq.QueryMod[T]
- func OnDuplicateKeySetString[T any](column string, right string) sq.QueryMod[T]
- 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, CHAIN any](name string, columns ...string) *ichain.WithChain[T, CHAIN]
- func WithExpr[T, CHAIN any](name string, columns ...litsql.Expression) *ichain.WithChain[T, CHAIN]
- 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, CHAIN any](columns ...string) *ichain.InsertConflictUpdateChain[T, CHAIN]
func OnConflictOnConstraint ¶
func OnConflictOnConstraint[T, CHAIN any](constraint string) *ichain.InsertConflictUpdateChain[T, CHAIN]
func OnDuplicateKeySet ¶ added in v0.11.0
func OnDuplicateKeySetArgNamed ¶ added in v0.11.0
func OnDuplicateKeySetClause ¶ added in v0.11.0
func OnDuplicateKeySetExpr ¶ added in v0.11.0
func OnDuplicateKeySetExprClause ¶ added in v0.11.0
func OnDuplicateKeySetExprClause[T any](assignment litsql.Expression) sq.QueryMod[T]
func OnDuplicateKeySetQuery ¶ added in v0.11.0
func OnDuplicateKeySetString ¶ added in v0.11.0
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.