iim

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 10 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 OnConflictOnConstraint

func OnConflictOnConstraint[T any](constraint string) chain.InsertConflictUpdate[T, imod.InsertConflictUpdateModTag]

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 any](name string, columns ...string) chain.With[T]

func WithExpr added in v0.8.0

func WithExpr[T any](name string, columns ...litsql.Expression) chain.With[T]

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