Documentation
¶
Index ¶
- func ParseSql(sql *XmlSQL, paramObj any) (string, []any, error)
- type ExtMapper
- func (em *ExtMapper) Delete(sqlId string, paramObj any) error
- func (em *ExtMapper) GetAndParseSql(sqlId string, paramObj any) (string, []any, error)
- func (em *ExtMapper) GetSql(sqlId string) (*XmlSQL, error)
- func (em *ExtMapper) Insert(sqlId string, paramObj any) error
- func (em *ExtMapper) Select(sqlId string, paramObj any, rx any) error
- func (em *ExtMapper) SetTx(tx *gorm.DB) *ExtMapper
- func (em *ExtMapper) Update(sqlId string, paramObj any) error
- type XmlMapper
- type XmlSQL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtMapper ¶
type ExtMapper struct {
// contains filtered or unexported fields
}
func (*ExtMapper) GetAndParseSql ¶
type XmlMapper ¶
type XmlMapper struct { XmlName xml.Name `xml:"mapper"` Namespace string `xml:"namespace,attr"` SelectSQLs []XmlSQL `xml:"select"` InsertSQLs []XmlSQL `xml:"insert"` UpdateSQLs []XmlSQL `xml:"update"` DeleteSQLs []XmlSQL `xml:"delete"` Id2Sql map[string]*XmlSQL }
func GetXmlMapper ¶
Click to show internal directories.
Click to hide internal directories.