Documentation ¶
Index ¶
- func Delete(queryMods ...bob.Mod[*DeleteQuery]) bob.BaseQuery[*DeleteQuery]
- func F(name string, args ...any) *dialect.Function
- func Insert(queryMods ...bob.Mod[*InsertQuery]) bob.BaseQuery[*InsertQuery]
- func RawQuery(q string, args ...any) bob.BaseQuery[expr.Raw]
- func Select(queryMods ...bob.Mod[*SelectQuery]) bob.BaseQuery[*SelectQuery]
- func Update(queryMods ...bob.Mod[*UpdateQuery]) bob.BaseQuery[*UpdateQuery]
- type DeleteQuery
- type Expression
- func And(args ...any) Expression
- func Arg(args ...any) Expression
- func Concat(args ...any) Expression
- func Group(exps ...any) Expression
- func Named(name string, value any) Expression
- func Not(exp any) Expression
- func Or(args ...any) Expression
- func P(exp any) Expression
- func Placeholder(n uint) Expression
- func Quote(ss ...string) Expression
- func Raw(query string, args ...any) Expression
- func S(s string) Expression
- func X(exp any, others ...any) Expression
- type InsertQuery
- type SelectQuery
- type UpdateQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(queryMods ...bob.Mod[*DeleteQuery]) bob.BaseQuery[*DeleteQuery]
func Insert ¶
func Insert(queryMods ...bob.Mod[*InsertQuery]) bob.BaseQuery[*InsertQuery]
func Select ¶
func Select(queryMods ...bob.Mod[*SelectQuery]) bob.BaseQuery[*SelectQuery]
func Update ¶
func Update(queryMods ...bob.Mod[*UpdateQuery]) bob.BaseQuery[*UpdateQuery]
Types ¶
type DeleteQuery ¶ added in v0.2.0
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_delete.html
type Expression ¶ added in v0.2.0
type Expression = dialect.Expression
func And ¶
func And(args ...any) Expression
func Arg ¶
func Arg(args ...any) Expression
func Concat ¶
func Concat(args ...any) Expression
func Group ¶
func Group(exps ...any) Expression
func Named ¶
func Named(name string, value any) Expression
func Not ¶
func Not(exp any) Expression
func Or ¶
func Or(args ...any) Expression
func P ¶
func P(exp any) Expression
func Placeholder ¶
func Placeholder(n uint) Expression
func Quote ¶
func Quote(ss ...string) Expression
func Raw ¶
func Raw(query string, args ...any) Expression
func S ¶
func S(s string) Expression
func X ¶
func X(exp any, others ...any) Expression
type InsertQuery ¶ added in v0.2.0
type InsertQuery struct { clause.With clause.Table clause.Values clause.Conflict clause.Returning // contains filtered or unexported fields }
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_insert.html
type SelectQuery ¶ added in v0.2.0
type SelectQuery struct { clause.With clause.Select clause.From clause.Where clause.GroupBy clause.Having clause.Windows clause.Combine clause.OrderBy clause.Limit clause.Offset clause.Load[*SelectQuery] }
Trying to represent the select query structure as documented in https://www.sqlite.org/lang_select.html
Source Files ¶
Click to show internal directories.
Click to hide internal directories.