sql_builder

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (s SQLBuilder) FinalizerWithExternalType(param1 fmt.Formatter, param2 packages.Package) packages.Package

func (SQLBuilder) GetLimit

func (s SQLBuilder) GetLimit() error

GetLimit returns the limit

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL