beego: github.com/astaxie/beego/client/orm/hints Index | Files

package hints

import "github.com/astaxie/beego/client/orm/hints"

Index

Package Files

db_hints.go

Constants

const (
    //query level
    KeyForceIndex = iota
    KeyUseIndex
    KeyIgnoreIndex
    KeyForUpdate
    KeyLimit
    KeyOffset
    KeyOrderBy
    KeyRelDepth
)

type Hint Uses

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

func DefaultRelDepth Uses

func DefaultRelDepth() *Hint

DefaultRelDepth return a hint about DefaultRelDepth

func ForUpdate Uses

func ForUpdate() *Hint

ForUpdate return a hint about ForUpdate

func ForceIndex Uses

func ForceIndex(indexes ...string) *Hint

ForceIndex return a hint about ForceIndex

func IgnoreIndex Uses

func IgnoreIndex(indexes ...string) *Hint

IgnoreIndex return a hint about IgnoreIndex

func Limit Uses

func Limit(d int64) *Hint

Limit return a hint about Limit

func NewHint Uses

func NewHint(key interface{}, value interface{}) *Hint

NewHint return a hint

func Offset Uses

func Offset(d int64) *Hint

Offset return a hint about Offset

func OrderBy Uses

func OrderBy(s string) *Hint

OrderBy return a hint about OrderBy

func RelDepth Uses

func RelDepth(d int) *Hint

RelDepth return a hint about RelDepth

func UseIndex Uses

func UseIndex(indexes ...string) *Hint

UseIndex return a hint about UseIndex

func (*Hint) GetKey Uses

func (s *Hint) GetKey() interface{}

GetKey return key

func (*Hint) GetValue Uses

func (s *Hint) GetValue() interface{}

GetValue return value

Package hints imports 1 packages (graph) and is imported by 2 packages. Updated 2020-11-07. Refresh now. Tools for package owners.