MysqlAst

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndWhereCondition

type AndWhereCondition struct {
	List []PreparedNode
}

func NewAndWhereCondition

func NewAndWhereCondition() *AndWhereCondition

func (*AndWhereCondition) AddAndCondition

func (n *AndWhereCondition) AddAndCondition(node PreparedNode) *AndWhereCondition

func (*AndWhereCondition) AddNode

func (*AndWhereCondition) AddPrepare

func (n *AndWhereCondition) AddPrepare(text string, parameterList ...string) *AndWhereCondition

func (*AndWhereCondition) Copy

func (n *AndWhereCondition) Copy() PreparedNode

func (*AndWhereCondition) GetPrepareParameter

func (n *AndWhereCondition) GetPrepareParameter() (string, []string)

func (*AndWhereCondition) IsEmpty

func (n *AndWhereCondition) IsEmpty() bool

type Node

type Node interface {
	GetText() string
	Copy() Node
}

type OrWhereCondition

type OrWhereCondition struct {
	List []PreparedNode
}

func NewOrWhereCondition

func NewOrWhereCondition() *OrWhereCondition

func (*OrWhereCondition) AddAndCondition

func (n *OrWhereCondition) AddAndCondition(node PreparedNode) *AndWhereCondition

func (*OrWhereCondition) AddCondition

func (n *OrWhereCondition) AddCondition(node PreparedNode) *OrWhereCondition

func (*OrWhereCondition) AddPrepare

func (n *OrWhereCondition) AddPrepare(text string, parameterList ...string) *OrWhereCondition

func (*OrWhereCondition) Copy

func (n *OrWhereCondition) Copy() PreparedNode

func (*OrWhereCondition) GetPrepareParameter

func (n *OrWhereCondition) GetPrepareParameter() (string, []string)

func (*OrWhereCondition) IsEmpty

func (n *OrWhereCondition) IsEmpty() bool

type PreparedNode

type PreparedNode interface {
	GetPrepareParameter() (string, []string)
	Copy() PreparedNode
}

type SelectCommand

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

func NewSelectCommand

func NewSelectCommand() *SelectCommand

func (*SelectCommand) AddAndWhereCondition

func (c *SelectCommand) AddAndWhereCondition(node PreparedNode) *SelectCommand

func (*SelectCommand) Copy

func (c *SelectCommand) Copy() *SelectCommand

func (*SelectCommand) ForUpdate

func (c *SelectCommand) ForUpdate() *SelectCommand

func (*SelectCommand) From

func (c *SelectCommand) From(text string) *SelectCommand

func (*SelectCommand) GetPrepareParameter

func (c *SelectCommand) GetPrepareParameter() (output string, parameterList []string)

func (*SelectCommand) GetWhereCondition

func (c *SelectCommand) GetWhereCondition() WhereCondition

func (*SelectCommand) GroupBy

func (c *SelectCommand) GroupBy(text string) *SelectCommand

func (*SelectCommand) Have

func (c *SelectCommand) Have(text string, parameterList ...string) *SelectCommand

func (*SelectCommand) Limit

func (c *SelectCommand) Limit(text string) *SelectCommand

func (*SelectCommand) LockInShareMode

func (c *SelectCommand) LockInShareMode() *SelectCommand

func (*SelectCommand) OrderBy

func (c *SelectCommand) OrderBy(text string) *SelectCommand

func (*SelectCommand) Select

func (c *SelectCommand) Select(text string) *SelectCommand

func (*SelectCommand) Where

func (c *SelectCommand) Where(text string, parameterList ...string) *SelectCommand

func (*SelectCommand) WhereObj

func (c *SelectCommand) WhereObj(obj WhereCondition) *SelectCommand

type StringNodeImpl

type StringNodeImpl string

func Text

func Text(text string) StringNodeImpl

func (StringNodeImpl) Copy

func (s StringNodeImpl) Copy() Node

func (StringNodeImpl) GetText

func (s StringNodeImpl) GetText() string

type StringPrepareNodeImpl

type StringPrepareNodeImpl struct {
	Text          string
	ParameterList []string
}

func Prepare

func Prepare(text string, parameterList ...string) StringPrepareNodeImpl

func (StringPrepareNodeImpl) AddAndCondition

func (n StringPrepareNodeImpl) AddAndCondition(node PreparedNode) *AndWhereCondition

func (StringPrepareNodeImpl) Copy

func (StringPrepareNodeImpl) GetPrepareParameter

func (n StringPrepareNodeImpl) GetPrepareParameter() (string, []string)

func (StringPrepareNodeImpl) IsEmpty

func (n StringPrepareNodeImpl) IsEmpty() bool

type WhereCondition

type WhereCondition interface {
	IsEmpty() bool
	AddAndCondition(node PreparedNode) *AndWhereCondition
	PreparedNode
}

Jump to

Keyboard shortcuts

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