Documentation ¶
Index ¶
- func And(args ...any) chain
- func Arg(args ...any) chain
- func Concat(args ...any) chain
- func Delete(queryMods ...query.Mod[*deleteQuery]) query.BaseQuery[*deleteQuery]
- func F(name string, args ...any) *function
- func Group(exps ...any) chain
- func Insert(queryMods ...query.Mod[*insertQuery]) query.BaseQuery[*insertQuery]
- func Not(exp any) chain
- func Or(args ...any) chain
- func P(exp any) chain
- func Placeholder(n uint) chain
- func Quote(ss ...string) chain
- func Raw(query string, args ...any) chain
- func RawQuery(q string, args ...any) query.BaseQuery[expr.Raw]
- func S(s string) chain
- func Select(queryMods ...query.Mod[*selectQuery]) query.BaseQuery[*selectQuery]
- func Update(queryMods ...query.Mod[*updateQuery]) query.BaseQuery[*updateQuery]
- func X(exp any, others ...any) chain
- type DeleteQM
- func (j DeleteQM) CrossJoin(e any) query.Mod[Q]
- func (qm DeleteQM) From(name any) query.Mod[*deleteQuery]
- func (qm DeleteQM) FromAs(name any, alias string) query.Mod[*deleteQuery]
- func (j DeleteQM) FullJoin(e any) joinChain[Q]
- func (j DeleteQM) InnerJoin(e any) joinChain[Q]
- func (DeleteQM) Lateral() query.Mod[*clause.FromItem]
- func (j DeleteQM) LeftJoin(e any) joinChain[Q]
- func (qm DeleteQM) Only() query.Mod[*deleteQuery]
- func (DeleteQM) Recursive(r bool) query.Mod[Q]
- func (qm DeleteQM) Returning(clauses ...any) query.Mod[*deleteQuery]
- func (j DeleteQM) RightJoin(e any) joinChain[Q]
- func (qm DeleteQM) Using(table any, usingMods ...query.Mod[*clause.FromItem]) query.Mod[*deleteQuery]
- func (qm DeleteQM) Where(e query.Expression) query.Mod[*deleteQuery]
- func (qm DeleteQM) WhereClause(clause string, args ...any) query.Mod[*deleteQuery]
- func (DeleteQM) With(name string, columns ...string) cteChain[Q]
- func (DeleteQM) WithOrdinality() query.Mod[*clause.FromItem]
- type Dialect
- type InsertQM
- func (qm InsertQM) Into(name any, columns ...string) query.Mod[*insertQuery]
- func (qm InsertQM) IntoAs(name any, alias string, columns ...string) query.Mod[*insertQuery]
- func (qm InsertQM) OnConflict(column any, where ...any) mods.Conflict[*insertQuery]
- func (qm InsertQM) OnConflictOnConstraint(constraint string) mods.Conflict[*insertQuery]
- func (qm InsertQM) OverridingSystem() query.Mod[*insertQuery]
- func (qm InsertQM) OverridingUser() query.Mod[*insertQuery]
- func (qm InsertQM) Query(q query.Query) query.Mod[*insertQuery]
- func (InsertQM) Recursive(r bool) query.Mod[Q]
- func (qm InsertQM) Returning(clauses ...any) query.Mod[*insertQuery]
- func (qm InsertQM) Values(clauses ...any) query.Mod[*insertQuery]
- func (InsertQM) With(name string, columns ...string) cteChain[Q]
- type SelectQM
- func (SelectQM) Columns(clauses ...any) query.Mod[*selectQuery]
- func (j SelectQM) CrossJoin(e any) query.Mod[Q]
- func (SelectQM) Distinct(on ...any) query.Mod[*selectQuery]
- func (SelectQM) Except(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) ExceptAll(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) Fetch(count int64, withTies bool) query.Mod[*selectQuery]
- func (SelectQM) ForKeyShare(tables ...string) lockChain[*selectQuery]
- func (SelectQM) ForNoKeyUpdate(tables ...string) lockChain[*selectQuery]
- func (SelectQM) ForShare(tables ...string) lockChain[*selectQuery]
- func (SelectQM) ForUpdate(tables ...string) lockChain[*selectQuery]
- func (j SelectQM) FullJoin(e any) joinChain[Q]
- func (SelectQM) GroupBy(e any) query.Mod[*selectQuery]
- func (SelectQM) GroupByDistinct(distinct bool) query.Mod[*selectQuery]
- func (SelectQM) Having(e query.Expression) query.Mod[*selectQuery]
- func (qm SelectQM) HavingClause(clause string, args ...any) query.Mod[*selectQuery]
- func (j SelectQM) InnerJoin(e any) joinChain[Q]
- func (SelectQM) Intersect(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) IntersectAll(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) Lateral() query.Mod[*clause.FromItem]
- func (j SelectQM) LeftJoin(e any) joinChain[Q]
- func (SelectQM) Limit(count int64) query.Mod[*selectQuery]
- func (SelectQM) Offset(count int64) query.Mod[*selectQuery]
- func (SelectQM) Only() query.Mod[*clause.FromItem]
- func (SelectQM) OrderBy(e any) orderBy[*selectQuery]
- func (SelectQM) Recursive(r bool) query.Mod[Q]
- func (j SelectQM) RightJoin(e any) joinChain[Q]
- func (SelectQM) Union(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) UnionAll(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) Where(e query.Expression) query.Mod[*selectQuery]
- func (qm SelectQM) WhereClause(clause string, args ...any) query.Mod[*selectQuery]
- func (SelectQM) Window(name string) windowMod[*selectQuery]
- func (SelectQM) With(name string, columns ...string) cteChain[Q]
- func (SelectQM) WithOrdinality() query.Mod[*clause.FromItem]
- type UpdateQM
- func (j UpdateQM) CrossJoin(e any) query.Mod[Q]
- func (j UpdateQM) FullJoin(e any) joinChain[Q]
- func (j UpdateQM) InnerJoin(e any) joinChain[Q]
- func (UpdateQM) Lateral() query.Mod[*clause.FromItem]
- func (j UpdateQM) LeftJoin(e any) joinChain[Q]
- func (qm UpdateQM) Only() query.Mod[*updateQuery]
- func (UpdateQM) Recursive(r bool) query.Mod[Q]
- func (qm UpdateQM) Returning(clauses ...any) query.Mod[*updateQuery]
- func (j UpdateQM) RightJoin(e any) joinChain[Q]
- func (qm UpdateQM) Set(a string, b any) query.Mod[*updateQuery]
- func (qm UpdateQM) SetArg(a string, b any) query.Mod[*updateQuery]
- func (qm UpdateQM) Table(name any) query.Mod[*updateQuery]
- func (qm UpdateQM) TableAs(name any, alias string) query.Mod[*updateQuery]
- func (qm UpdateQM) Where(e query.Expression) query.Mod[*updateQuery]
- func (qm UpdateQM) WhereClause(clause string, args ...any) query.Mod[*updateQuery]
- func (UpdateQM) With(name string, columns ...string) cteChain[Q]
- func (UpdateQM) WithOrdinality() query.Mod[*clause.FromItem]
- type ValuesQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Placeholder ¶
func Placeholder(n uint) chain
Types ¶
type InsertQM ¶
type InsertQM struct {
// contains filtered or unexported fields
}
func (InsertQM) OnConflict ¶
The column to target. Will auto add brackets
func (InsertQM) OnConflictOnConstraint ¶
func (InsertQM) OverridingSystem ¶
func (InsertQM) OverridingUser ¶
type SelectQM ¶
type SelectQM struct { mods.FromMod[*selectQuery] // select *FROM* mods.TableAliasMod[*clause.FromItem] // Adding an alias to from item // contains filtered or unexported fields }
func (SelectQM) ForKeyShare ¶
func (SelectQM) ForNoKeyUpdate ¶
func (SelectQM) GroupByDistinct ¶
func (SelectQM) HavingClause ¶
func (SelectQM) WhereClause ¶
Click to show internal directories.
Click to hide internal directories.