Documentation ¶
Index ¶
- Constants
- type From
- type FromChain
- type GroupBy
- type GroupByChain
- type InsertConflictUpdate
- type InsertConflictUpdateChain
- func (f *InsertConflictUpdateChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
- func (f *InsertConflictUpdateChain[T, CHAIN]) DoNothing() CHAIN
- func (f *InsertConflictUpdateChain[T, CHAIN]) DoUpdate(mods ...mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]) CHAIN
- func (f *InsertConflictUpdateChain[T, CHAIN]) Where(condition string) CHAIN
- func (f *InsertConflictUpdateChain[T, CHAIN]) WhereClause(query string, args ...any) CHAIN
- func (f *InsertConflictUpdateChain[T, CHAIN]) WhereExpr(condition litsql.Expression) CHAIN
- type Join
- type JoinChain
- func (c *JoinChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
- func (c *JoinChain[T, CHAIN]) As(alias string, columns ...string) CHAIN
- func (c *JoinChain[T, CHAIN]) Lateral() CHAIN
- func (c *JoinChain[T, CHAIN]) Natural() CHAIN
- func (c *JoinChain[T, CHAIN]) On(on string) CHAIN
- func (c *JoinChain[T, CHAIN]) OnClause(query string, args ...any) CHAIN
- func (c *JoinChain[T, CHAIN]) OnExpr(on litsql.Expression) CHAIN
- func (c *JoinChain[T, CHAIN]) Only() CHAIN
- func (c *JoinChain[T, CHAIN]) Using(using ...string) CHAIN
- func (c *JoinChain[T, CHAIN]) WithOrdinality() CHAIN
- type Window
- type WindowChain
- func (f *WindowChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
- func (f *WindowChain[T, CHAIN]) Frame(frame string) CHAIN
- func (f *WindowChain[T, CHAIN]) FrameClause(query string, args ...any) CHAIN
- func (f *WindowChain[T, CHAIN]) FrameExpr(frame litsql.Expression) CHAIN
- func (f *WindowChain[T, CHAIN]) From(name string) CHAIN
- func (f *WindowChain[T, CHAIN]) OrderBy(order ...string) CHAIN
- func (f *WindowChain[T, CHAIN]) OrderByExpr(order ...litsql.Expression) CHAIN
- func (f *WindowChain[T, CHAIN]) PartitionBy(condition ...string) CHAIN
- func (f *WindowChain[T, CHAIN]) PartitionByExpr(condition ...litsql.Expression) CHAIN
- type With
- type WithChain
- func (c *WithChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
- func (c *WithChain[T, CHAIN]) As(q litsql.Query) CHAIN
- func (c *WithChain[T, CHAIN]) Cycle(set, using string, cols ...string) CHAIN
- func (c *WithChain[T, CHAIN]) CycleValue(value, defaultVal any) CHAIN
- func (c *WithChain[T, CHAIN]) Materialized() CHAIN
- func (c *WithChain[T, CHAIN]) NotMaterialized() CHAIN
- func (c *WithChain[T, CHAIN]) Recursive() CHAIN
- func (c *WithChain[T, CHAIN]) SearchBreadth(setCol string, searchCols ...string) CHAIN
- func (c *WithChain[T, CHAIN]) SearchDepth(setCol string, searchCols ...string) CHAIN
Constants ¶
View Source
const ( JoinInnerJoin = "INNER JOIN" JoinLeftJoin = "LEFT JOIN" JoinRightJoin = "RIGHT JOIN" JoinFullJoin = "FULL JOIN" JoinCrossJoin = "CROSS JOIN" JoinStraightJoin = "STRAIGHT_JOIN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromChain ¶
func NewFromChain ¶ added in v0.11.0
func (*FromChain[T, CHAIN]) Apply ¶
func (f *FromChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*FromChain[T, CHAIN]) WithOrdinality ¶
func (f *FromChain[T, CHAIN]) WithOrdinality() CHAIN
type GroupByChain ¶
func NewGroupByChain ¶ added in v0.11.0
func NewGroupByChain[T, CHAIN any](chain *GroupByChain[T, CHAIN]) *GroupByChain[T, CHAIN]
func (*GroupByChain[T, CHAIN]) Apply ¶
func (c *GroupByChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*GroupByChain[T, CHAIN]) Distinct ¶
func (c *GroupByChain[T, CHAIN]) Distinct() CHAIN
func (*GroupByChain[T, CHAIN]) With ¶
func (c *GroupByChain[T, CHAIN]) With(with string) CHAIN
type InsertConflictUpdate ¶ added in v0.11.0
type InsertConflictUpdate[T, UM any] interface { sq.QueryMod[T] Where(condition string) InsertConflictUpdate[T, UM] WhereExpr(condition litsql.Expression) InsertConflictUpdate[T, UM] WhereClause(query string, args ...any) InsertConflictUpdate[T, UM] DoNothing() InsertConflictUpdate[T, UM] DoUpdate(mods ...mod.InsertConflictUpdateMod[T, UM]) InsertConflictUpdate[T, UM] }
type InsertConflictUpdateChain ¶ added in v0.11.0
type InsertConflictUpdateChain[T, CHAIN any] struct { sq.ModTagImpl[T] *iclause.InsertConflictUpdate Self any }
func NewInsertConflictUpdateChain ¶ added in v0.11.0
func NewInsertConflictUpdateChain[T, CHAIN any](chain *InsertConflictUpdateChain[T, CHAIN]) *InsertConflictUpdateChain[T, CHAIN]
func (*InsertConflictUpdateChain[T, CHAIN]) Apply ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*InsertConflictUpdateChain[T, CHAIN]) DoNothing ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) DoNothing() CHAIN
func (*InsertConflictUpdateChain[T, CHAIN]) DoUpdate ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) DoUpdate(mods ...mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModTag]) CHAIN
func (*InsertConflictUpdateChain[T, CHAIN]) Where ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) Where(condition string) CHAIN
func (*InsertConflictUpdateChain[T, CHAIN]) WhereClause ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) WhereClause(query string, args ...any) CHAIN
func (*InsertConflictUpdateChain[T, CHAIN]) WhereExpr ¶ added in v0.11.0
func (f *InsertConflictUpdateChain[T, CHAIN]) WhereExpr(condition litsql.Expression) CHAIN
type JoinChain ¶
func NewJoinChain ¶ added in v0.11.0
func (*JoinChain[T, CHAIN]) Apply ¶
func (c *JoinChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*JoinChain[T, CHAIN]) OnExpr ¶ added in v0.8.0
func (c *JoinChain[T, CHAIN]) OnExpr(on litsql.Expression) CHAIN
func (*JoinChain[T, CHAIN]) WithOrdinality ¶
func (c *JoinChain[T, CHAIN]) WithOrdinality() CHAIN
type Window ¶ added in v0.11.0
type Window[T any] interface { sq.QueryMod[T] From(name string) Window[T] PartitionBy(condition ...string) Window[T] PartitionByExpr(condition ...litsql.Expression) Window[T] OrderBy(order ...string) Window[T] OrderByExpr(order ...litsql.Expression) Window[T] Frame(frame string) Window[T] FrameExpr(frame litsql.Expression) Window[T] FrameClause(query string, args ...any) Window[T] }
type WindowChain ¶
type WindowChain[T, CHAIN any] struct { sq.ModTagImpl[T] *iclause.Windows NamedWindow *iclause.NamedWindow Self any }
func NewWindowChain ¶ added in v0.11.0
func NewWindowChain[T, CHAIN any](chain *WindowChain[T, CHAIN]) *WindowChain[T, CHAIN]
func (*WindowChain[T, CHAIN]) Apply ¶
func (f *WindowChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*WindowChain[T, CHAIN]) Frame ¶ added in v0.11.8
func (f *WindowChain[T, CHAIN]) Frame(frame string) CHAIN
func (*WindowChain[T, CHAIN]) FrameClause ¶ added in v0.11.8
func (f *WindowChain[T, CHAIN]) FrameClause(query string, args ...any) CHAIN
func (*WindowChain[T, CHAIN]) FrameExpr ¶ added in v0.11.8
func (f *WindowChain[T, CHAIN]) FrameExpr(frame litsql.Expression) CHAIN
func (*WindowChain[T, CHAIN]) From ¶
func (f *WindowChain[T, CHAIN]) From(name string) CHAIN
func (*WindowChain[T, CHAIN]) OrderBy ¶
func (f *WindowChain[T, CHAIN]) OrderBy(order ...string) CHAIN
func (*WindowChain[T, CHAIN]) OrderByExpr ¶ added in v0.8.0
func (f *WindowChain[T, CHAIN]) OrderByExpr(order ...litsql.Expression) CHAIN
func (*WindowChain[T, CHAIN]) PartitionBy ¶
func (f *WindowChain[T, CHAIN]) PartitionBy(condition ...string) CHAIN
func (*WindowChain[T, CHAIN]) PartitionByExpr ¶ added in v0.8.0
func (f *WindowChain[T, CHAIN]) PartitionByExpr(condition ...litsql.Expression) CHAIN
type With ¶ added in v0.11.0
type With[T any] interface { sq.QueryMod[T] Recursive() With[T] As(q litsql.Query) With[T] NotMaterialized() With[T] Materialized() With[T] SearchBreadth(setCol string, searchCols ...string) With[T] SearchDepth(setCol string, searchCols ...string) With[T] Cycle(set, using string, cols ...string) With[T] CycleValue(value, defaultVal any) With[T] }
type WithChain ¶
func NewWithChain ¶ added in v0.11.0
func (*WithChain[T, CHAIN]) Apply ¶
func (c *WithChain[T, CHAIN]) Apply(a litsql.QueryBuilder)
func (*WithChain[T, CHAIN]) CycleValue ¶
func (*WithChain[T, CHAIN]) Materialized ¶
func (c *WithChain[T, CHAIN]) Materialized() CHAIN
func (*WithChain[T, CHAIN]) NotMaterialized ¶
func (c *WithChain[T, CHAIN]) NotMaterialized() CHAIN
func (*WithChain[T, CHAIN]) SearchBreadth ¶
func (*WithChain[T, CHAIN]) SearchDepth ¶
Click to show internal directories.
Click to hide internal directories.