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 Named(name string, value any) chain
- 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 (qm DeleteQM) From(name any) query.Mod[*deleteQuery]
- func (qm DeleteQM) FromAs(name any, alias string) query.Mod[*deleteQuery]
- func (qm DeleteQM) IndexedBy(indexName string) query.Mod[*deleteQuery]
- func (qm DeleteQM) NotIndexed() query.Mod[*deleteQuery]
- func (DeleteQM) Recursive(r bool) query.Mod[Q]
- func (qm DeleteQM) Returning(clauses ...any) 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]
- 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 (o InsertQM) OrAbort() query.Mod[Q]
- func (o InsertQM) OrFail() query.Mod[Q]
- func (o InsertQM) OrIgnore() query.Mod[Q]
- func (o InsertQM) OrReplace() query.Mod[Q]
- func (o InsertQM) OrRollback() query.Mod[Q]
- 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() query.Mod[*selectQuery]
- func (SelectQM) Except(q query.Query) query.Mod[*selectQuery]
- func (j SelectQM) FullJoin(e any) joinChain[Q]
- func (SelectQM) GroupBy(e any) query.Mod[*selectQuery]
- func (SelectQM) Having(e query.Expression) query.Mod[*selectQuery]
- func (qm SelectQM) HavingClause(clause string, args ...any) query.Mod[*selectQuery]
- func (SelectQM) IndexedBy(indexName string) query.Mod[*clause.FromItem]
- func (j SelectQM) InnerJoin(e any) joinChain[Q]
- func (SelectQM) Intersect(q query.Query) query.Mod[*selectQuery]
- func (j SelectQM) LeftJoin(e any) joinChain[Q]
- func (SelectQM) Limit(count any) query.Mod[*selectQuery]
- func (SelectQM) NotIndexed() query.Mod[*clause.FromItem]
- func (SelectQM) Offset(count any) query.Mod[*selectQuery]
- 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]
- type UpdateQM
- func (j UpdateQM) CrossJoin(e any) query.Mod[Q]
- func (j UpdateQM) FullJoin(e any) joinChain[Q]
- func (qm UpdateQM) IndexedBy(indexName string) query.Mod[*updateQuery]
- func (j UpdateQM) InnerJoin(e any) joinChain[Q]
- func (j UpdateQM) LeftJoin(e any) joinChain[Q]
- func (qm UpdateQM) NotIndexed() query.Mod[*updateQuery]
- func (o UpdateQM) OrAbort() query.Mod[Q]
- func (o UpdateQM) OrFail() query.Mod[Q]
- func (o UpdateQM) OrIgnore() query.Mod[Q]
- func (o UpdateQM) OrReplace() query.Mod[Q]
- func (o UpdateQM) OrRollback() query.Mod[Q]
- 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]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Placeholder ¶
func Placeholder(n uint) chain
Types ¶
type DeleteQM ¶
type DeleteQM struct {
// contains filtered or unexported fields
}
func (DeleteQM) NotIndexed ¶
func (DeleteQM) WhereClause ¶
type InsertQM ¶
type InsertQM struct {
// contains filtered or unexported fields
}
func (InsertQM) OnConflict ¶
func (InsertQM) OrRollback ¶
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) HavingClause ¶
func (SelectQM) WhereClause ¶
type UpdateQM ¶
type UpdateQM struct {
mods.FromMod[*updateQuery] // update *FROM*
// contains filtered or unexported fields
}
func (UpdateQM) NotIndexed ¶
func (UpdateQM) OrRollback ¶
func (UpdateQM) WhereClause ¶
Click to show internal directories.
Click to hide internal directories.