Documentation ¶
Index ¶
- Constants
- type FromChain
- type GroupByChain
- type InsertConflictChain
- func (f *InsertConflictChain[T]) Apply(a litsql.QueryBuilder)
- func (f *InsertConflictChain[T]) DoNothing() chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
- func (f *InsertConflictChain[T]) DoUpdate(mods ...mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModUM]) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
- func (f *InsertConflictChain[T]) Where(condition string) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
- func (f *InsertConflictChain[T]) WhereC(query string, args ...any) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
- func (f *InsertConflictChain[T]) WhereE(condition litsql.Expression) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
- type JoinChain
- func (c *JoinChain[T]) Apply(a litsql.QueryBuilder)
- func (c *JoinChain[T]) As(alias string, columns ...string) chain.Join[T]
- func (c *JoinChain[T]) Lateral() chain.Join[T]
- func (c *JoinChain[T]) Natural() sq.QueryMod[T]
- func (c *JoinChain[T]) On(on string) chain.Join[T]
- func (c *JoinChain[T]) OnC(query string, args ...any) chain.Join[T]
- func (c *JoinChain[T]) OnE(on litsql.Expression) chain.Join[T]
- func (c *JoinChain[T]) Only() chain.Join[T]
- func (c *JoinChain[T]) Using(using ...string) chain.Join[T]
- func (c *JoinChain[T]) WithOrdinality() chain.Join[T]
- type WindowChain
- func (f *WindowChain[T]) Apply(a litsql.QueryBuilder)
- func (f *WindowChain[T]) ExcludeCurrentRow() chain.Window[T]
- func (f *WindowChain[T]) ExcludeGroup() chain.Window[T]
- func (f *WindowChain[T]) ExcludeNoOthers() chain.Window[T]
- func (f *WindowChain[T]) ExcludeTies() chain.Window[T]
- func (f *WindowChain[T]) From(name string) chain.Window[T]
- func (f *WindowChain[T]) FromCurrentRow() chain.Window[T]
- func (f *WindowChain[T]) FromFollowing(exp litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) FromPreceding(exp litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) FromUnboundedPreceding() chain.Window[T]
- func (f *WindowChain[T]) Groups() chain.Window[T]
- func (f *WindowChain[T]) OrderBy(order ...litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) PartitionBy(condition ...litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) Range() chain.Window[T]
- func (f *WindowChain[T]) Rows() chain.Window[T]
- func (f *WindowChain[T]) ToCurrentRow(count int) chain.Window[T]
- func (f *WindowChain[T]) ToFollowing(exp litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) ToPreceding(exp litsql.Expression) chain.Window[T]
- func (f *WindowChain[T]) ToUnboundedFollowing() chain.Window[T]
- type WithChain
- func (c *WithChain[T]) Apply(a litsql.QueryBuilder)
- func (c *WithChain[T]) As(q litsql.Query) chain.With[T]
- func (c *WithChain[T]) Cycle(set, using string, cols ...string) chain.With[T]
- func (c *WithChain[T]) CycleValue(value, defaultVal any) chain.With[T]
- func (c *WithChain[T]) Materialized() chain.With[T]
- func (c *WithChain[T]) NotMaterialized() chain.With[T]
- func (c *WithChain[T]) Recursive() chain.With[T]
- func (c *WithChain[T]) SearchBreadth(setCol string, searchCols ...string) chain.With[T]
- func (c *WithChain[T]) SearchDepth(setCol string, searchCols ...string) chain.With[T]
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 ¶
type FromChain[T any] struct { sq.ModTagImpl[T] *iclause.From }
func (*FromChain[T]) Apply ¶
func (f *FromChain[T]) Apply(a litsql.QueryBuilder)
func (*FromChain[T]) WithOrdinality ¶
type GroupByChain ¶
type GroupByChain[T any] struct { sq.ModTagImpl[T] *iclause.GroupBy }
func (*GroupByChain[T]) Apply ¶
func (c *GroupByChain[T]) Apply(a litsql.QueryBuilder)
func (*GroupByChain[T]) Distinct ¶
func (c *GroupByChain[T]) Distinct() chain.GroupBy[T]
type InsertConflictChain ¶
type InsertConflictChain[T any] struct { sq.ModTagImpl[T] *iclause.InsertConflict }
func (*InsertConflictChain[T]) Apply ¶
func (f *InsertConflictChain[T]) Apply(a litsql.QueryBuilder)
func (*InsertConflictChain[T]) DoNothing ¶
func (f *InsertConflictChain[T]) DoNothing() chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
func (*InsertConflictChain[T]) DoUpdate ¶
func (f *InsertConflictChain[T]) DoUpdate(mods ...mod.InsertConflictUpdateMod[T, imod.InsertConflictUpdateModUM]) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
func (*InsertConflictChain[T]) Where ¶
func (f *InsertConflictChain[T]) Where(condition string) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
func (*InsertConflictChain[T]) WhereC ¶
func (f *InsertConflictChain[T]) WhereC(query string, args ...any) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
func (*InsertConflictChain[T]) WhereE ¶
func (f *InsertConflictChain[T]) WhereE(condition litsql.Expression) chain.InsertConflict[T, imod.InsertConflictUpdateModUM]
type JoinChain ¶
type JoinChain[T any] struct { sq.ModTagImpl[T] *iclause.Join }
func (*JoinChain[T]) Apply ¶
func (c *JoinChain[T]) Apply(a litsql.QueryBuilder)
func (*JoinChain[T]) WithOrdinality ¶
type WindowChain ¶
type WindowChain[T any] struct { sq.ModTagImpl[T] *iclause.Windows NamedWindow *iclause.NamedWindow }
func (*WindowChain[T]) Apply ¶
func (f *WindowChain[T]) Apply(a litsql.QueryBuilder)
func (*WindowChain[T]) ExcludeCurrentRow ¶
func (f *WindowChain[T]) ExcludeCurrentRow() chain.Window[T]
func (*WindowChain[T]) ExcludeGroup ¶
func (f *WindowChain[T]) ExcludeGroup() chain.Window[T]
func (*WindowChain[T]) ExcludeNoOthers ¶
func (f *WindowChain[T]) ExcludeNoOthers() chain.Window[T]
func (*WindowChain[T]) ExcludeTies ¶
func (f *WindowChain[T]) ExcludeTies() chain.Window[T]
func (*WindowChain[T]) FromCurrentRow ¶
func (f *WindowChain[T]) FromCurrentRow() chain.Window[T]
func (*WindowChain[T]) FromFollowing ¶
func (f *WindowChain[T]) FromFollowing(exp litsql.Expression) chain.Window[T]
func (*WindowChain[T]) FromPreceding ¶
func (f *WindowChain[T]) FromPreceding(exp litsql.Expression) chain.Window[T]
func (*WindowChain[T]) FromUnboundedPreceding ¶
func (f *WindowChain[T]) FromUnboundedPreceding() chain.Window[T]
func (*WindowChain[T]) Groups ¶
func (f *WindowChain[T]) Groups() chain.Window[T]
func (*WindowChain[T]) OrderBy ¶
func (f *WindowChain[T]) OrderBy(order ...litsql.Expression) chain.Window[T]
func (*WindowChain[T]) PartitionBy ¶
func (f *WindowChain[T]) PartitionBy(condition ...litsql.Expression) chain.Window[T]
func (*WindowChain[T]) Range ¶
func (f *WindowChain[T]) Range() chain.Window[T]
func (*WindowChain[T]) Rows ¶
func (f *WindowChain[T]) Rows() chain.Window[T]
func (*WindowChain[T]) ToCurrentRow ¶
func (f *WindowChain[T]) ToCurrentRow(count int) chain.Window[T]
func (*WindowChain[T]) ToFollowing ¶
func (f *WindowChain[T]) ToFollowing(exp litsql.Expression) chain.Window[T]
func (*WindowChain[T]) ToPreceding ¶
func (f *WindowChain[T]) ToPreceding(exp litsql.Expression) chain.Window[T]
func (*WindowChain[T]) ToUnboundedFollowing ¶
func (f *WindowChain[T]) ToUnboundedFollowing() chain.Window[T]
type WithChain ¶
func (*WithChain[T]) Apply ¶
func (c *WithChain[T]) Apply(a litsql.QueryBuilder)
func (*WithChain[T]) CycleValue ¶
func (*WithChain[T]) Materialized ¶
func (*WithChain[T]) NotMaterialized ¶
func (*WithChain[T]) SearchBreadth ¶
Click to show internal directories.
Click to hide internal directories.