iim

package
v0.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.4.2

func Apply[T any](f func(a sq.QueryModApply[T])) sq.QueryMod[T]

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 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 Insert

func Insert[T any](dialect litsql.Dialect, mods ...sq.QueryMod[T]) sq.Query[T]

func Into

func Into[T any](name string, columns ...string) sq.QueryMod[T]

func IntoAs

func IntoAs[T any](name string, alias string, columns ...string) sq.QueryMod[T]

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 OnDuplicateKeySet[T any](column string, arg any) sq.QueryMod[T]

func OnDuplicateKeySetArgNamed added in v0.11.0

func OnDuplicateKeySetArgNamed[T any](column string, argumentName string) sq.QueryMod[T]

func OnDuplicateKeySetClause added in v0.11.0

func OnDuplicateKeySetClause[T any](query string, args ...any) sq.QueryMod[T]

func OnDuplicateKeySetExpr added in v0.11.0

func OnDuplicateKeySetExpr[T any](column string, value litsql.Expression) sq.QueryMod[T]

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 OnDuplicateKeySetQuery[T, A any](column string, q isq.Query[A]) sq.QueryMod[T]

func OnDuplicateKeySetString added in v0.11.0

func OnDuplicateKeySetString[T any](column string, right string) sq.QueryMod[T]

func OverridingSystem

func OverridingSystem[T any]() sq.QueryMod[T]

func OverridingUser

func OverridingUser[T any]() sq.QueryMod[T]

func Query

func Query[T, A any](q isq.Query[A]) sq.QueryMod[T]

func RawQuery added in v0.8.1

func RawQuery[T any](rawQuery string, args ...any) sq.QueryMod[T]

func RawQueryExpr added in v0.8.1

func RawQueryExpr[T any](rawQuery litsql.Expression) sq.QueryMod[T]

func Returning

func Returning[T any](clauses ...string) sq.QueryMod[T]

func Values

func Values[T any](values ...any) sq.QueryMod[T]

func ValuesArgNamed added in v0.8.0

func ValuesArgNamed[T any](argumentNames ...string) sq.QueryMod[T]

func ValuesExpr added in v0.8.0

func ValuesExpr[T any](clauses ...litsql.Expression) sq.QueryMod[T]

func ValuesString added in v0.8.0

func ValuesString[T any](clauses ...string) sq.QueryMod[T]

func With

func With[T, CHAIN any](name string, columns ...string) *ichain.WithChain[T, CHAIN]

func WithExpr added in v0.8.0

func WithExpr[T, CHAIN any](name string, columns ...litsql.Expression) *ichain.WithChain[T, CHAIN]

Types

type InsertQuery

type InsertQuery[T any] struct {
	*isq.DefaultQuery[T]
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL