um

package
v0.11.3 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by "litsql-dialectgen"; DO NOT EDIT.

Code generated by "litsql-dialectgen"; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.4.2

func Apply(f func(a psql.UpdateModApply)) psql.UpdateMod

func Only

func Only() psql.UpdateMod

func Returning

func Returning(clauses ...string) psql.UpdateMod

func Set

func Set(column string, arg any) psql.UpdateMod

func SetArgNamed added in v0.8.0

func SetArgNamed(column string, argumentName string) psql.UpdateMod

func SetClause added in v0.8.0

func SetClause(query string, args ...any) psql.UpdateMod

func SetExpr added in v0.8.0

func SetExpr(column string, value litsql.Expression) psql.UpdateMod

func SetExprClause added in v0.8.0

func SetExprClause(assignment litsql.Expression) psql.UpdateMod

func SetQuery added in v0.8.0

func SetQuery(column string, q psql.SelectQuery) psql.UpdateMod

func SetString added in v0.8.0

func SetString(column string, right string) psql.UpdateMod

func Table

func Table(name string) psql.UpdateMod

func TableAs added in v0.10.0

func TableAs(name string, alias string) psql.UpdateMod

func Where

func Where(condition string) psql.UpdateMod

func WhereClause added in v0.8.0

func WhereClause(query string, args ...any) psql.UpdateMod

func WhereExpr added in v0.8.0

func WhereExpr(condition litsql.Expression) psql.UpdateMod

Types

type FromChain

type FromChain interface {
	sq.QueryMod[tag.UpdateTag]
	As(alias string, columns ...string) FromChain
	Only() FromChain
	Lateral() FromChain
	WithOrdinality() FromChain
}

func From

func From(table string) FromChain

func FromExpr added in v0.8.0

func FromExpr(table litsql.Expression) FromChain

func FromQuery added in v0.8.0

func FromQuery(q psql.SelectQuery) FromChain

type JoinChain

type JoinChain interface {
	sq.QueryMod[tag.UpdateTag]
	As(alias string, columns ...string) JoinChain
	Only() JoinChain
	Lateral() JoinChain
	WithOrdinality() JoinChain
	Natural() JoinChain
	On(on string) JoinChain
	OnExpr(on litsql.Expression) JoinChain
	OnClause(query string, args ...any) JoinChain
	Using(using ...string) JoinChain
}

func CrossJoin

func CrossJoin(table string) JoinChain

func CrossJoinExpr added in v0.8.0

func CrossJoinExpr(table litsql.Expression) JoinChain

func FullJoin

func FullJoin(table string) JoinChain

func FullJoinExpr added in v0.8.0

func FullJoinExpr(table litsql.Expression) JoinChain

func InnerJoin

func InnerJoin(table string) JoinChain

func InnerJoinExpr added in v0.8.0

func InnerJoinExpr(table litsql.Expression) JoinChain

func LeftJoin

func LeftJoin(table string) JoinChain

func LeftJoinExpr added in v0.8.0

func LeftJoinExpr(table litsql.Expression) JoinChain

func RightJoin

func RightJoin(table string) JoinChain

func RightJoinExpr added in v0.8.0

func RightJoinExpr(table litsql.Expression) JoinChain

func StraightJoin

func StraightJoin(table string) JoinChain

func StraightJoinExpr added in v0.8.0

func StraightJoinExpr(table litsql.Expression) JoinChain

type WithChain

type WithChain interface {
	sq.QueryMod[tag.UpdateTag]
	Recursive() WithChain
	As(q litsql.Query) WithChain
	NotMaterialized() WithChain
	Materialized() WithChain
	SearchBreadth(setCol string, searchCols ...string) WithChain
	SearchDepth(setCol string, searchCols ...string) WithChain
	Cycle(set string, using string, cols ...string) WithChain
	CycleValue(value any, defaultVal any) WithChain
}

func With

func With(name string, columns ...string) WithChain

func WithExpr added in v0.8.0

func WithExpr(name string, columns ...litsql.Expression) WithChain

Jump to

Keyboard shortcuts

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