Documentation ¶
Index ¶
- func Apply[T any](f func(a sq.QueryModApply[T])) sq.QueryMod[T]
- func Columns[T any](names ...string) sq.QueryMod[T]
- func ColumnsClause[T any](query string, args ...any) sq.QueryMod[T]
- func ColumnsExpr[T any](names ...litsql.Expression) sq.QueryMod[T]
- func CrossJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func CrossJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func Distinct[T any](on ...string) sq.QueryMod[T]
- func DistinctExpr[T any](on ...litsql.Expression) sq.QueryMod[T]
- func Except[T any](q isq.Query[T]) sq.QueryMod[T]
- func ExceptAll[T any](q isq.Query[T]) sq.QueryMod[T]
- func From[T, CHAIN any](table string) *ichain.FromChain[T, CHAIN]
- func FromExpr[T, CHAIN any](table litsql.Expression) *ichain.FromChain[T, CHAIN]
- func FromQuery[T, CHAIN, A any](q isq.Query[A]) *ichain.FromChain[T, CHAIN]
- func FullJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func FullJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func GroupBy[T, CHAIN any](columns ...string) *ichain.GroupByChain[T, CHAIN]
- func GroupByExpr[T, CHAIN any](columns ...litsql.Expression) *ichain.GroupByChain[T, CHAIN]
- func Having[T any](condition string) sq.QueryMod[T]
- func HavingClause[T any](query string, args ...any) sq.QueryMod[T]
- func HavingExpr[T any](condition litsql.Expression) sq.QueryMod[T]
- func InnerJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func InnerJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func Intersect[T any](q isq.Query[T]) sq.QueryMod[T]
- func IntersectAll[T any](q isq.Query[T]) sq.QueryMod[T]
- func JoinExpr[T, CHAIN any](typ string, table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func LeftJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func LeftJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func Limit[T any](count int) sq.QueryMod[T]
- func LimitArg[T any](arg any) sq.QueryMod[T]
- func LimitArgNamed[T any](argumentName string) sq.QueryMod[T]
- func LimitExpr[T any](count litsql.Expression) sq.QueryMod[T]
- func Offset[T any](count int) sq.QueryMod[T]
- func OffsetArg[T any](arg any) sq.QueryMod[T]
- func OffsetArgNamed[T any](argumentName string) sq.QueryMod[T]
- func OffsetExpr[T any](count litsql.Expression) sq.QueryMod[T]
- func OrderBy[T any](names ...string) sq.QueryMod[T]
- func OrderByExpr[T any](names ...litsql.Expression) sq.QueryMod[T]
- func RawQuery[T any](rawQuery string, args ...any) sq.QueryMod[T]
- func RawQueryExpr[T any](rawQuery litsql.Expression) sq.QueryMod[T]
- func RightJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func RightJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func Select[T any](dialect litsql.Dialect, mods ...sq.QueryMod[T]) sq.Query[T]
- func StraightJoin[T, CHAIN any](table string) *ichain.JoinChain[T, CHAIN]
- func StraightJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
- func Union[T any](q isq.Query[T]) sq.QueryMod[T]
- func UnionAll[T any](q isq.Query[T]) sq.QueryMod[T]
- func Where[T any](condition string) sq.QueryMod[T]
- func WhereClause[T any](query string, args ...any) sq.QueryMod[T]
- func WhereExpr[T any](condition litsql.Expression) sq.QueryMod[T]
- func Window[T, CHAIN any](name string) *ichain.WindowChain[T, CHAIN]
- func With[T, CHAIN any](name string, columns ...string) *ichain.WithChain[T, CHAIN]
- func WithExpr[T, CHAIN any](name string, columns ...litsql.Expression) *ichain.WithChain[T, CHAIN]
- type SelectQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnsClause ¶ added in v0.8.0
ColumnsClause adds column names to SELECT queries.
func ColumnsExpr ¶ added in v0.8.0
func ColumnsExpr[T any](names ...litsql.Expression) sq.QueryMod[T]
ColumnsExpr adds column names to SELECT queries.
func CrossJoinExpr ¶ added in v0.8.0
func CrossJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func DistinctExpr ¶ added in v0.8.0
func DistinctExpr[T any](on ...litsql.Expression) sq.QueryMod[T]
func FromExpr ¶ added in v0.8.0
func FromExpr[T, CHAIN any](table litsql.Expression) *ichain.FromChain[T, CHAIN]
func FullJoinExpr ¶ added in v0.8.0
func FullJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func GroupByExpr ¶ added in v0.8.0
func GroupByExpr[T, CHAIN any](columns ...litsql.Expression) *ichain.GroupByChain[T, CHAIN]
func HavingClause ¶ added in v0.8.0
func HavingExpr ¶ added in v0.8.0
func HavingExpr[T any](condition litsql.Expression) sq.QueryMod[T]
func InnerJoinExpr ¶ added in v0.8.0
func InnerJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func LeftJoinExpr ¶ added in v0.8.0
func LeftJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func OffsetArgNamed ¶ added in v0.8.0
func OffsetExpr ¶ added in v0.8.0
func OffsetExpr[T any](count litsql.Expression) sq.QueryMod[T]
func OrderByExpr ¶ added in v0.8.0
func OrderByExpr[T any](names ...litsql.Expression) sq.QueryMod[T]
func RawQueryExpr ¶ added in v0.8.1
func RawQueryExpr[T any](rawQuery litsql.Expression) sq.QueryMod[T]
func RightJoinExpr ¶ added in v0.8.0
func RightJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func StraightJoinExpr ¶ added in v0.8.0
func StraightJoinExpr[T, CHAIN any](table litsql.Expression) *ichain.JoinChain[T, CHAIN]
func WhereClause ¶ added in v0.8.0
Types ¶
type SelectQuery ¶
type SelectQuery[T any] struct { *isq.DefaultQuery[T] }
Click to show internal directories.
Click to hide internal directories.