Documentation ¶
Index ¶
- type SQLBuilder
- func (s SQLBuilder) Build() string
- func (s SQLBuilder) ChainMethodWithExternalType(param1 *log.Logger, param2 packages.Module) SQLBuilder
- func (s SQLBuilder) Finalizer() *offset.OffsetBuilder
- func (s SQLBuilder) FinalizerWithExternalType(param1 fmt.Formatter, param2 packages.Package) packages.Package
- func (s SQLBuilder) GetLimit() error
- func (s SQLBuilder) GetOffset() int
- func (s SQLBuilder) Limit(limit int) SQLBuilder
- func (s SQLBuilder) Offset(offset int) SQLBuilder
- func (s SQLBuilder) VariadicMethod(params ...string) SQLBuilder
- func (s SQLBuilder) Where(condition string) SQLBuilder
- type WhereBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLBuilder ¶
type SQLBuilder struct { // TODO: auto-resolve method conflicts if parent builder already has it anyway W WhereBuilder `chaingen:"-Build,*=Where*,*Where=*"` O offset.OffsetBuilder `chaingen:"-Build,Offset*=*,fin(GetLimit)=wrapper"` }
func (SQLBuilder) Build ¶
func (s SQLBuilder) Build() string
func (SQLBuilder) ChainMethodWithExternalType ¶
func (s SQLBuilder) ChainMethodWithExternalType(param1 *log.Logger, param2 packages.Module) SQLBuilder
func (SQLBuilder) Finalizer ¶
func (s SQLBuilder) Finalizer() *offset.OffsetBuilder
Finalizer is a useless finalizer that returns pointer to the builder
func (SQLBuilder) FinalizerWithExternalType ¶
func (SQLBuilder) GetOffset ¶
func (s SQLBuilder) GetOffset() int
func (SQLBuilder) Limit ¶
func (s SQLBuilder) Limit(limit int) SQLBuilder
Limit sets the limit This is a second line of the comment
func (SQLBuilder) Offset ¶
func (s SQLBuilder) Offset(offset int) SQLBuilder
Offset sets the offset param
func (SQLBuilder) VariadicMethod ¶
func (s SQLBuilder) VariadicMethod(params ...string) SQLBuilder
func (SQLBuilder) Where ¶
func (s SQLBuilder) Where(condition string) SQLBuilder
Where sets SQL condition
type WhereBuilder ¶
type WhereBuilder struct {
// contains filtered or unexported fields
}
func (WhereBuilder) Build ¶
func (w WhereBuilder) Build() string
func (WhereBuilder) Where ¶
func (w WhereBuilder) Where(condition string) WhereBuilder
Where sets SQL condition
Click to show internal directories.
Click to hide internal directories.