Versions in this module Expand all Collapse all v0 v0.2.8 Jul 21, 2022 v0.2.7 Jul 6, 2022 Changes in this version type If + Foreach Foreach + type Manager struct + func NewManager() *Manager + func (manager *Manager) FindSqlParser(sqlId string) (sqlparser.SqlParser, bool) + func (manager *Manager) RegisterData(data []byte) error + func (manager *Manager) RegisterFile(file string) error + func (manager *Manager) RegisterSql(sqlId string, sql string) error + func (manager *Manager) UnregisterSql(sqlId string) v0.0.1 Jul 6, 2019 Changes in this version + const MapperStart + func Compare(src string, getFunc func(key string) string) bool + func ParseDynamic(src string, sqls []Sql) (*parsing.DynamicData, error) + type Choose struct + Otherwise Otherwise + When []When + func (de *Choose) Format(getFunc func(key string) string) string + type ChooseProcessor string + func (d ChooseProcessor) EndStr() string + func (d ChooseProcessor) Parse(src string) parsing.DynamicElement + type Constructor struct + Arg string + IdArg IdArg + type Delete struct + Data string + FlushCache string + Id string + ParameterType string + StatementType string + Timeout string + XMLName xml.Name + type Foreach struct + Close string + Collection string + Data string + Index string + Item string + Open string + Separator string + func (de *Foreach) Format(getFunc func(key string) string) string + type ForeachProcessor string + func (d ForeachProcessor) EndStr() string + func (d ForeachProcessor) Parse(src string) parsing.DynamicElement + type IdArg struct + Column string + GoType string + type If struct + Data string + Test string + func (de *If) Format(getFunc func(key string) string) string + type IfProcessor string + func (d IfProcessor) EndStr() string + func (d IfProcessor) Parse(src string) parsing.DynamicElement + type Include struct + Properties []Property + Refid string + Sql Sql + func (de *Include) Format(getFunc func(key string) string) string + type IncludeProcessor string + func (d IncludeProcessor) EndStr() string + func (d IncludeProcessor) Parse(src string) parsing.DynamicElement + type Insert struct + Data string + FlushCache string + Id string + KeyColumn string + KeyProperty string + ParameterType string + StatementType string + Timeout string + UseGeneratedKeys string + XMLName xml.Name + type Mapper struct + Delete []Delete + Insert []Insert + Namespace string + ResultMaps []ResultMap + Select []Select + Sql []Sql + Update []Update + func Parse(data []byte) (*Mapper, error) + func ParseFile(path string) (*Mapper, error) + func (m *Mapper) Format() map[string]*parsing.DynamicData + type Otherwise struct + Data string + type Property struct + Name string + Value string + type Result struct + Column string + Property string + type ResultMap struct + Constructor Constructor + Id string + ResultId Result + Results []Result + TypeName string + XMLName xml.Name + type Select struct + Data string + FetchSize string + FlushCache string + Id string + ParameterMap string + ParameterType string + ResultMap string + ResultSetType string + ResultType string + StatementType string + Timeout string + UseCache string + XMLName xml.Name + func (a *Select) ParseDynamic() + type Set struct + If []If + func (de *Set) Format(getFunc func(key string) string) string + type SetProcessor string + func (d SetProcessor) EndStr() string + func (d SetProcessor) Parse(src string) parsing.DynamicElement + type Sql struct + Id string + Sql string + func (de *Sql) Format(getFunc func(key string) string) string + type Update struct + Data string + FlushCache string + Id string + ParameterType string + StatementType string + Timeout string + XMLName xml.Name + type When struct + type Where struct + Choose Choose + If []If + func (de *Where) Format(getFunc func(key string) string) string + type WhereProcessor string + func (d WhereProcessor) EndStr() string + func (d WhereProcessor) Parse(src string) parsing.DynamicElement