method

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseWhere

func ParseWhere(sqlTerms []string, whereIndex int, g sqlgenerator.SQLGenerator) (string, []*sqlgenerator.SQLParam, error)

func ReplaceParam

func ReplaceParam(sql string, p *Param, newStr string) string

Types

type BaseMethod

type BaseMethod struct {
	// contains filtered or unexported fields
}

func (*BaseMethod) CheckCountReturns

func (bg *BaseMethod) CheckCountReturns(fd *rdesc.FuncDesc) error

func (*BaseMethod) CheckDeleteReturns

func (bg *BaseMethod) CheckDeleteReturns(fd *rdesc.FuncDesc) error

func (*BaseMethod) CheckFindReturns

func (bg *BaseMethod) CheckFindReturns(fd *rdesc.FuncDesc) error

func (*BaseMethod) CheckUpdateReturns

func (bg *BaseMethod) CheckUpdateReturns(fd *rdesc.FuncDesc) error

func (*BaseMethod) Test

func (bg *BaseMethod) Test(fn *defines.Func) bool

type Method

type Method interface {
	Test(fn *defines.Func) bool
	Parse() (*rdesc.FuncDesc, error)
}

func CreateMethods

func CreateMethods(sqlg sqlgenerator.SQLGenerator, logger logger.GpaLogger) []Method

type Param

type Param struct {
	Start int
	End   int
	Name  string
}

func FindParams

func FindParams(term string) ([]*Param, error)

Jump to

Keyboard shortcuts

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