Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildrenNode ¶
type ChildrenNode struct {
Children []Node
}
func NewNode ¶
func NewNode() *ChildrenNode
func (*ChildrenNode) AddChildren ¶
func (n *ChildrenNode) AddChildren(ns ...Node) error
type ChooseNode ¶
type ChooseNode struct { When []*WhenNode Otherwise *OtherwiseNode }
func NewChooseNode ¶
func NewChooseNode() *ChooseNode
func (*ChooseNode) AddChildren ¶
func (n *ChooseNode) AddChildren(ns ...Node) error
func (*ChooseNode) Scan ¶
func (n *ChooseNode) Scan(start *xml.StartElement) error
type Context ¶
type Context struct { QueryType string // select, insert, update, delete Variable map[string]string Sqls map[string]*SqlNode }
func NewContext ¶
func NewContext() *Context
func (*Context) SetVariable ¶
type Data ¶
type Data struct { Nodes []DataNode // contains filtered or unexported fields }
func (*Data) AddChildren ¶
type ForeachNode ¶
type ForeachNode struct { *ChildrenNode Open string Close string Separator string }
func NewForeachNode ¶
func NewForeachNode() *ForeachNode
func (*ForeachNode) Scan ¶
func (n *ForeachNode) Scan(start *xml.StartElement) error
type IfNode ¶
type IfNode struct { *ChildrenNode Expression string }
type IncludeNode ¶
type IncludeNode struct { RefId DataNode Properties map[string]*PropertyNode }
func NewIncludeNode ¶
func NewIncludeNode() *IncludeNode
func (*IncludeNode) AddChildren ¶
func (i *IncludeNode) AddChildren(ns ...Node) error
func (*IncludeNode) Scan ¶
func (i *IncludeNode) Scan(start *xml.StartElement) error
type Mapper ¶
type Mapper struct { NameSpace string SqlNodes map[string]*SqlNode QueryNodeIndex map[string]*QueryNode QueryNodes []*QueryNode }
func (*Mapper) AddChildren ¶
type OtherwiseNode ¶
type OtherwiseNode struct {
Data *Data
}
func NewOtherwiseNode ¶
func NewOtherwiseNode() *OtherwiseNode
func (*OtherwiseNode) AddChildren ¶
func (n *OtherwiseNode) AddChildren(ns ...Node) error
func (*OtherwiseNode) Scan ¶
func (n *OtherwiseNode) Scan(start *xml.StartElement) error
type PropertyNode ¶
func NewPropertyNode ¶
func NewPropertyNode() *PropertyNode
func (*PropertyNode) AddChildren ¶
func (p *PropertyNode) AddChildren(ns ...Node) error
func (*PropertyNode) Scan ¶
func (p *PropertyNode) Scan(start *xml.StartElement) error
type QueryNode ¶
type QueryNode struct { *ChildrenNode Id string Type string }
func NewQueryNode ¶
func NewQueryNode() *QueryNode
type SqlNode ¶
type SqlNode struct { *ChildrenNode Id string }
func NewSqlNode ¶
func NewSqlNode() *SqlNode
type TrimNode ¶
type TrimNode struct { *ChildrenNode Name string Prefix string PrefixOverrides []string SuffixOverrides []string }
func NewTrimNode ¶
func NewTrimNode() *TrimNode
type WhenNode ¶
type WhenNode struct { *ChildrenNode Expression string }
func NewWhenNode ¶
func NewWhenNode() *WhenNode
Click to show internal directories.
Click to hide internal directories.