Documentation
¶
Index ¶
- Variables
- func OrAbort[Q interface{ ... }]() bob.Mod[Q]
- func OrFail[Q interface{ ... }]() bob.Mod[Q]
- func OrIgnore[Q interface{ ... }]() bob.Mod[Q]
- func OrReplace[Q interface{ ... }]() bob.Mod[Q]
- func OrRollback[Q interface{ ... }]() bob.Mod[Q]
- type CTEChain
- type CrossJoinChain
- type DeleteQuery
- type Expression
- type FromChain
- type Function
- type InsertQuery
- type JoinChain
- func (j JoinChain[Q]) Apply(q Q)
- func (j JoinChain[Q]) As(alias string) JoinChain[Q]
- func (f JoinChain[Q]) IndexedBy(indexName string) bob.Mod[Q]
- func (j JoinChain[Q]) Natural() bob.Mod[Q]
- func (f JoinChain[Q]) NotIndexed() bob.Mod[Q]
- func (j JoinChain[Q]) On(on ...bob.Expression) bob.Mod[Q]
- func (j JoinChain[Q]) OnEQ(a, b bob.Expression) bob.Mod[Q]
- func (j JoinChain[Q]) Using(using ...string) bob.Mod[Q]
- type Joinable
- type OrderBy
- type SelectQuery
- type UpdateQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Dialect dialect
)
Functions ¶
func OrRollback ¶
Types ¶
type CTEChain ¶
type CTEChain[Q interface{ AppendCTE(bob.Expression) }] func() clause.CTE
func With ¶
func With[Q interface{ AppendCTE(bob.Expression) }](name string, columns ...string) CTEChain[Q]
func (CTEChain[Q]) Materialized ¶
func (CTEChain[Q]) NotMaterialized ¶
type CrossJoinChain ¶ added in v0.29.0
func CrossJoin ¶
func CrossJoin[Q Joinable](e any) CrossJoinChain[Q]
func (CrossJoinChain[Q]) Apply ¶ added in v0.29.0
func (j CrossJoinChain[Q]) Apply(q Q)
type DeleteQuery ¶ added in v0.15.0
type DeleteQuery struct {
clause.With
clause.From
clause.Where
clause.Returning
bob.Load
bob.EmbeddedHook
bob.ContextualModdable[*DeleteQuery]
}
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_delete.html
type Expression ¶
type Expression struct {
expr.Chain[Expression, Expression]
}
func (Expression) New ¶
func (Expression) New(exp bob.Expression) Expression
type FromChain ¶ added in v0.7.0
func (FromChain[Q]) NotIndexed ¶ added in v0.7.0
type Function ¶
type Function struct {
// Used in value functions. Supported by Sqlite and Postgres
Distinct bool
clause.OrderBy
Filter []any
// For chain methods
expr.Chain[Expression, Expression]
// contains filtered or unexported fields
}
func NewFunction ¶
type InsertQuery ¶ added in v0.15.0
type InsertQuery struct {
clause.With
clause.Table
clause.Values
clause.Conflict
clause.Returning
bob.EmbeddedHook
bob.ContextualModdable[*InsertQuery]
// contains filtered or unexported fields
}
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_insert.html
type JoinChain ¶
func (JoinChain[Q]) NotIndexed ¶ added in v0.20.0
type OrderBy ¶
type OrderBy[Q interface{ AppendOrder(bob.Expression) }] func() clause.OrderDef
func (OrderBy[Q]) NullsFirst ¶
type SelectQuery ¶ added in v0.15.0
type SelectQuery struct {
clause.With
clause.SelectList
Distinct bool
clause.From
clause.Where
clause.GroupBy
clause.Having
clause.Windows
clause.Combines
clause.OrderBy
clause.Limit
clause.Offset
bob.Load
bob.EmbeddedHook
bob.ContextualModdable[*SelectQuery]
}
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_select.html
type UpdateQuery ¶ added in v0.15.0
type UpdateQuery struct {
clause.With
Table clause.From
clause.Set
clause.From
clause.Where
clause.Returning
bob.Load
bob.EmbeddedHook
bob.ContextualModdable[*UpdateQuery]
// contains filtered or unexported fields
}
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_update.html
Click to show internal directories.
Click to hide internal directories.