Documentation
¶
Index ¶
- type AndWhereCondition
- func (n *AndWhereCondition) AddAndCondition(node PreparedNode) *AndWhereCondition
- func (n *AndWhereCondition) AddNode(node PreparedNode) *AndWhereCondition
- func (n *AndWhereCondition) AddPrepare(text string, parameterList ...string) *AndWhereCondition
- func (n *AndWhereCondition) Copy() PreparedNode
- func (n *AndWhereCondition) GetPrepareParameter() (string, []string)
- func (n *AndWhereCondition) IsEmpty() bool
- type Node
- type OrWhereCondition
- func (n *OrWhereCondition) AddAndCondition(node PreparedNode) *AndWhereCondition
- func (n *OrWhereCondition) AddCondition(node PreparedNode) *OrWhereCondition
- func (n *OrWhereCondition) AddPrepare(text string, parameterList ...string) *OrWhereCondition
- func (n *OrWhereCondition) Copy() PreparedNode
- func (n *OrWhereCondition) GetPrepareParameter() (string, []string)
- func (n *OrWhereCondition) IsEmpty() bool
- type PreparedNode
- type SelectCommand
- func (c *SelectCommand) AddAndWhereCondition(node PreparedNode) *SelectCommand
- func (c *SelectCommand) Copy() *SelectCommand
- func (c *SelectCommand) ForUpdate() *SelectCommand
- func (c *SelectCommand) From(text string) *SelectCommand
- func (c *SelectCommand) GetPrepareParameter() (output string, parameterList []string)
- func (c *SelectCommand) GetWhereCondition() WhereCondition
- func (c *SelectCommand) GroupBy(text string) *SelectCommand
- func (c *SelectCommand) Have(text string, parameterList ...string) *SelectCommand
- func (c *SelectCommand) Limit(text string) *SelectCommand
- func (c *SelectCommand) LockInShareMode() *SelectCommand
- func (c *SelectCommand) OrderBy(text string) *SelectCommand
- func (c *SelectCommand) Select(text string) *SelectCommand
- func (c *SelectCommand) Where(text string, parameterList ...string) *SelectCommand
- func (c *SelectCommand) WhereObj(obj WhereCondition) *SelectCommand
- type StringNodeImpl
- type StringPrepareNodeImpl
- type WhereCondition
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 (n *AndWhereCondition) AddNode(node PreparedNode) *AndWhereCondition
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 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 ¶
func Prepare ¶
func Prepare(text string, parameterList ...string) StringPrepareNodeImpl
func (StringPrepareNodeImpl) AddAndCondition ¶
func (n StringPrepareNodeImpl) AddAndCondition(node PreparedNode) *AndWhereCondition
func (StringPrepareNodeImpl) Copy ¶
func (n StringPrepareNodeImpl) Copy() PreparedNode
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 }
Click to show internal directories.
Click to hide internal directories.