Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Build() string
- func (b *Builder) Execute() (driver.Cursor, error)
- func (b *Builder) WithAndFilterCondition(fields map[string]interface{})
- func (b *Builder) WithInsert(fields map[string]interface{})
- func (b *Builder) WithLimit(offset, limit uint)
- func (b *Builder) WithLoopStatement()
- func (b *Builder) WithRemove()
- func (b *Builder) WithReturnFields(fields []string)
- func (b *Builder) WithSortFields(fields map[string]string)
- func (b *Builder) WithUpdate(fields map[string]interface{})
Constants ¶
View Source
const Ascending = "ASC"
TODO: These should probably be they're own type
View Source
const Descending = "DESC"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) Build ¶
TODO: Should probably do something about each With* function adding a new line at the end then trimming the remaining new lines
func (*Builder) WithAndFilterCondition ¶
func (*Builder) WithInsert ¶
func (*Builder) WithLoopStatement ¶
func (b *Builder) WithLoopStatement()
func (*Builder) WithRemove ¶
func (b *Builder) WithRemove()
func (*Builder) WithReturnFields ¶
func (*Builder) WithSortFields ¶
func (*Builder) WithUpdate ¶
Click to show internal directories.
Click to hide internal directories.