Documentation ¶
Index ¶
- Variables
- type GoBuilder
- func (gb *GoBuilder) Between(column string, args ...any) *GoBuilder
- func (gb *GoBuilder) Create(args map[string]any, returning ...string) *GoBuilder
- func (gb *GoBuilder) Delete() *GoBuilder
- func (gb *GoBuilder) GroupBy(columns ...string) *GoBuilder
- func (gb *GoBuilder) Having(condition string, args ...any) *GoBuilder
- func (gb *GoBuilder) In(column string, args ...any) *GoBuilder
- func (gb *GoBuilder) IsNotNull(column string) *GoBuilder
- func (gb *GoBuilder) IsNull(column string) *GoBuilder
- func (gb *GoBuilder) Join(table, first, operator, last string) *GoBuilder
- func (gb *GoBuilder) LeftJoin(table, first, operator, last string) *GoBuilder
- func (gb *GoBuilder) Limit(offset, limit int) *GoBuilder
- func (gb *GoBuilder) OrBetween(column string, args ...any) *GoBuilder
- func (gb *GoBuilder) OrIn(column string, args ...any) *GoBuilder
- func (gb *GoBuilder) OrIsNotNull(column string) *GoBuilder
- func (gb *GoBuilder) OrIsNull(column string) *GoBuilder
- func (gb *GoBuilder) OrWhere(key, opt string, val any) *GoBuilder
- func (gb *GoBuilder) OrderBy(columns ...string) *GoBuilder
- func (gb *GoBuilder) OrderByDesc(columns ...string) *GoBuilder
- func (gb *GoBuilder) Prepare() (string, []any)
- func (gb *GoBuilder) RightJoin(table, first, operator, last string) *GoBuilder
- func (gb *GoBuilder) Select(columns ...string) *GoBuilder
- func (gb *GoBuilder) SelectDistinct(columns ...string) *GoBuilder
- func (gb *GoBuilder) Sql() string
- func (gb *GoBuilder) Table(table string) *GoBuilder
- func (gb *GoBuilder) Union(sql string) *GoBuilder
- func (gb *GoBuilder) Update(args map[string]any) *GoBuilder
- func (gb *GoBuilder) Where(key, opt string, val any) *GoBuilder
- type SQLDialect
Constants ¶
This section is empty.
Variables ¶
View Source
var Timeout time.Duration = 30
Default time for query statute of limitations, you can change this value for each query as you need.
Functions ¶
This section is empty.
Types ¶
type GoBuilder ¶
type GoBuilder struct {
// contains filtered or unexported fields
}
https://github.com/mstgnz/gobuilder
func NewGoBuilder ¶
func NewGoBuilder(holderClause SQLDialect) *GoBuilder
NewGoBuilder initializes a new instance of GoBuilder
func (*GoBuilder) OrIsNotNull ¶
OrIsNotNull adds an OR IS NOT NULL clause
func (*GoBuilder) OrderByDesc ¶
OrderByDesc adds an ORDER BY DESC clause
func (*GoBuilder) SelectDistinct ¶
SelectDistinct defines the distinct columns to be selected
type SQLDialect ¶
type SQLDialect string
const ( Postgres SQLDialect = "postgres" MySQL SQLDialect = "mysql" SQLite SQLDialect = "sqlite" SQLServer SQLDialect = "sqlserver" Oracle SQLDialect = "oracle" )
Click to show internal directories.
Click to hide internal directories.