Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundSql ¶
type BoundSql struct { // 解析后的sql, 将自定义的占位符“#{}”替换为对应的数据 SqlText string ParamMappingList []ParamMapping }
func NewBoundSql ¶
func NewBoundSql(sqlText string, list []ParamMapping) *BoundSql
type ConfigurationBuilder ¶
type ConfigurationBuilder struct {
Configuration pojo.Configuration
}
ConfigurationBuilder
- 根据sqlMapConfig配置内容,将连接池对象,对应的sqlMapper对象,进行初始化处理
- 并统一保存到Configuration对象中,生成全局统一的对象,提供给后续方式中进行使用
func (*ConfigurationBuilder) ParseConfig ¶
func (configBuilder *ConfigurationBuilder) ParseConfig(in pojo.BuildInfo) pojo.Configuration
ParseConfig
- 对象生产器:
- 解析配置文件,初始化对应的内容,生成configuration对象
type ParamMapping ¶
type ParamMapping struct {
Content string
}
func NewParamMapping ¶
func NewParamMapping(content string) ParamMapping
type XMLMapperBuilder ¶
type XMLMapperBuilder struct {
Configuration *pojo.Configuration
}
func NewXMLMapperBuilder ¶
func NewXMLMapperBuilder(config *pojo.Configuration) *XMLMapperBuilder
Click to show internal directories.
Click to hide internal directories.