iim

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConflictSetQ

func ConflictSetQ[T, A any](column string, q isq.Query[A]) mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModUM]

func Func

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

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 any](columns ...string) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]

func OnConflictOnConstraint

func OnConflictOnConstraint[T any](constraint string) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]

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]

Insert from a query

func Returning

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

func Values

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

func ValuesE

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

func ValuesS

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

func WhereC

func With

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

func WithE

func WithE[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