Documentation ¶
Index ¶
- type Builder
- func (b *Builder) BuildQuery(tableName string) string
- func (b *Builder) GroupByField(fields ...string) *Builder
- func (b *Builder) OrderByAsc(fields ...string) *Builder
- func (b *Builder) OrderByDesc(fields ...string) *Builder
- func (b *Builder) ResetStmt()
- func (b *Builder) SelectField(fields ...string) *Builder
- func (b *Builder) WhereEqual(field string, value interface{}) *Builder
- func (b *Builder) WhereNull(field string, isNull bool) *Builder
- func (b *Builder) WhereOperator(field string, operator string, value interface{}) *Builder
- type QueryBuilderInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { GroupBy string OrderBy string Params []interface{} Select string Where string // contains filtered or unexported fields }
Builder -
func (*Builder) BuildQuery ¶
BuildQuery - It takes care of building the query
func (*Builder) GroupByField ¶
GroupByField - Builds "group by" expression GroupByField - Costruisce una condizione di group by
func (*Builder) OrderByAsc ¶
OrderByAsc - Build "order by" expression ASC
func (*Builder) OrderByDesc ¶
OrderByDesc - Build "order by" expression DESC
func (*Builder) ResetStmt ¶
func (b *Builder) ResetStmt()
ResetStmt - Resets stmt fields with initial values
func (*Builder) SelectField ¶
SelectField - Builds the n-fields passed in "select" expression
func (*Builder) WhereEqual ¶
WhereEqual - Builds "where" expression with "=" operator
Click to show internal directories.
Click to hide internal directories.