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 (DeleteQM) ForceIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (qm DeleteQM) From(name any) query.Mod[*deleteQuery]
- func (qm DeleteQM) FromAs(name any, alias string) query.Mod[*deleteQuery]
- func (DeleteQM) Ignore() query.Mod[*deleteQuery]
- func (DeleteQM) IgnoreIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (j DeleteQM) InnerJoin(e any) joinChain[Q]
- func (DeleteQM) Lateral() query.Mod[*clause.FromItem]
- func (j DeleteQM) LeftJoin(e any) joinChain[Q]
- func (DeleteQM) Limit(count int64) query.Mod[*deleteQuery]
- func (DeleteQM) LowPriority() query.Mod[*deleteQuery]
- func (DeleteQM) MaxExecutionTime(n int) query.Mod[Q]
- func (DeleteQM) OrderBy(e any) orderBy[*deleteQuery]
- func (DeleteQM) Quick() query.Mod[*deleteQuery]
- func (DeleteQM) Recursive(r bool) query.Mod[Q]
- func (j DeleteQM) RightJoin(e any) joinChain[Q]
- func (DeleteQM) SetVar(statement string) query.Mod[Q]
- func (j DeleteQM) StraightJoin(e any) query.Mod[Q]
- func (DeleteQM) UseIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- 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]
- type Dialect
- type InsertQM
- func (s InsertQM) Apply(q Q)
- func (qm InsertQM) As(rowAlias string, colAlias ...string) query.Mod[*insertQuery]
- func (qm InsertQM) HighPriority() query.Mod[*insertQuery]
- func (qm InsertQM) Ignore() query.Mod[*insertQuery]
- func (qm InsertQM) Into(name any, columns ...string) query.Mod[*insertQuery]
- func (qm InsertQM) LowPriority() query.Mod[*insertQuery]
- func (InsertQM) MaxExecutionTime(n int) query.Mod[Q]
- func (qm InsertQM) OnDuplicateKeyUpdate(sets ...setMod[*insertQuery]) query.Mod[*insertQuery]
- func (p InsertQM) Partition(partitions ...string) query.Mod[Q]
- func (qm InsertQM) Query(q query.BaseQuery[*selectQuery]) query.Mod[*insertQuery]
- func (qm InsertQM) Set(col string, val any) setMod[*insertQuery]
- func (InsertQM) SetVar(statement string) query.Mod[Q]
- func (qm InsertQM) Values(clauses ...any) query.Mod[*insertQuery]
- type SelectQM
- func (SelectQM) BigResult() query.Mod[*selectQuery]
- func (SelectQM) BufferResult() query.Mod[*selectQuery]
- 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) ForShare(tables ...string) lockChain[*selectQuery]
- func (SelectQM) ForUpdate(tables ...string) lockChain[*selectQuery]
- func (SelectQM) ForceIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- 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) HighPriority() query.Mod[*selectQuery]
- func (SelectQM) IgnoreIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (j SelectQM) InnerJoin(e any) joinChain[Q]
- func (i SelectQM) Into(var1 string, vars ...string) query.Mod[Q]
- func (i SelectQM) IntoDumpfile(filename string) query.Mod[Q]
- func (i SelectQM) IntoOutfile(filename string) *intoChain[Q]
- 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) MaxExecutionTime(n int) query.Mod[Q]
- func (SelectQM) Offset(count int64) 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) SetVar(statement string) query.Mod[Q]
- func (SelectQM) SmallResult() query.Mod[*selectQuery]
- func (SelectQM) Straight() query.Mod[*selectQuery]
- func (j SelectQM) StraightJoin(e any) query.Mod[Q]
- func (SelectQM) Union(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) UnionAll(q query.Query) query.Mod[*selectQuery]
- func (SelectQM) UseIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- 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) WithRollup(distinct bool) query.Mod[*selectQuery]
- type UpdateQM
- func (j UpdateQM) CrossJoin(e any) query.Mod[Q]
- func (UpdateQM) ForceIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (UpdateQM) Ignore() query.Mod[*deleteQuery]
- func (UpdateQM) IgnoreIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (j UpdateQM) InnerJoin(e any) joinChain[Q]
- func (UpdateQM) Lateral() query.Mod[*clause.FromItem]
- func (j UpdateQM) LeftJoin(e any) joinChain[Q]
- func (UpdateQM) Limit(count int64) query.Mod[*updateQuery]
- func (UpdateQM) LowPriority() query.Mod[*deleteQuery]
- func (UpdateQM) MaxExecutionTime(n int) query.Mod[Q]
- func (UpdateQM) OrderBy(e any) orderBy[*updateQuery]
- func (UpdateQM) Recursive(r bool) query.Mod[Q]
- func (j UpdateQM) RightJoin(e any) joinChain[Q]
- func (UpdateQM) Set(a string, b any) query.Mod[*updateQuery]
- func (UpdateQM) SetArg(a string, b any) query.Mod[*updateQuery]
- func (UpdateQM) SetVar(statement string) query.Mod[Q]
- func (j UpdateQM) StraightJoin(e any) query.Mod[Q]
- func (u UpdateQM) Table(name any, mods ...query.Mod[*clause.FromItem]) query.Mod[*updateQuery]
- func (u UpdateQM) TableAs(name any, alias string, mods ...query.Mod[*clause.FromItem]) query.Mod[*updateQuery]
- func (UpdateQM) UseIndex(first string, others ...string) *indexHintChain[*clause.FromItem]
- func (UpdateQM) Where(e query.Expression) query.Mod[*updateQuery]
- func (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 ¶
func (DeleteQM) ForceIndex ¶
func (DeleteQM) IgnoreIndex ¶
func (DeleteQM) LowPriority ¶
func (DeleteQM) MaxExecutionTime ¶
func (DeleteQM) StraightJoin ¶
func (DeleteQM) WhereClause ¶
type InsertQM ¶
type InsertQM struct {
// contains filtered or unexported fields
}
func (InsertQM) HighPriority ¶
func (InsertQM) LowPriority ¶
func (InsertQM) MaxExecutionTime ¶
func (InsertQM) OnDuplicateKeyUpdate ¶
func (InsertQM) Query ¶
Insert from a query If Go allows type parameters on methods, limit this to select, table and raw
type SelectQM ¶
type SelectQM struct {
mods.FromMod[*selectQuery] // select *FROM*
// contains filtered or unexported fields
}
func (SelectQM) BufferResult ¶
func (SelectQM) ForceIndex ¶
func (SelectQM) HavingClause ¶
func (SelectQM) HighPriority ¶
func (SelectQM) IgnoreIndex ¶
func (SelectQM) IntoDumpfile ¶
func (SelectQM) IntoOutfile ¶
func (i SelectQM) IntoOutfile(filename string) *intoChain[Q]
func (SelectQM) MaxExecutionTime ¶
func (SelectQM) SmallResult ¶
func (SelectQM) StraightJoin ¶
func (SelectQM) WhereClause ¶
type UpdateQM ¶
type UpdateQM struct {
// contains filtered or unexported fields
}
func (UpdateQM) ForceIndex ¶
func (UpdateQM) IgnoreIndex ¶
func (UpdateQM) LowPriority ¶
func (UpdateQM) MaxExecutionTime ¶
func (UpdateQM) StraightJoin ¶
func (UpdateQM) WhereClause ¶
Click to show internal directories.
Click to hide internal directories.