Documentation
¶
Overview ¶
Package data Code generated by ikaiguang. <https://github.com/ikaiguang>
Package data Code generated by ikaiguang. <https://github.com/ikaiguang>
Index ¶
- func NewNodeIdData(logger log.Logger, dbConn *gorm.DB) datarepos.NodeIdDataRepo
- func NewNodeSerialData(logger log.Logger, dbConn *gorm.DB) datarepos.NodeSerialDataRepo
- type NodeIdSlice
- func (s *NodeIdSlice) ConflictActionForMySQL() (req *gormpkg.BatchInsertConflictActionReq)
- func (s *NodeIdSlice) ConflictActionForPostgres() (req *gormpkg.BatchInsertConflictActionReq)
- func (s *NodeIdSlice) InsertColumns() (columnList []string, placeholder string)
- func (s *NodeIdSlice) InsertValues(args *gormpkg.BatchInsertValueArgs) (prepareData []interface{}, placeholderSlice []string)
- func (s *NodeIdSlice) Len() int
- func (s *NodeIdSlice) TableName() string
- func (s *NodeIdSlice) UpdateColumns() (columnList []string)
- type NodeSerialSlice
- func (s *NodeSerialSlice) ConflictActionForMySQL() (req *gormpkg.BatchInsertConflictActionReq)
- func (s *NodeSerialSlice) ConflictActionForPostgres() (req *gormpkg.BatchInsertConflictActionReq)
- func (s *NodeSerialSlice) InsertColumns() (columnList []string, placeholder string)
- func (s *NodeSerialSlice) InsertValues(args *gormpkg.BatchInsertValueArgs) (prepareData []interface{}, placeholderSlice []string)
- func (s *NodeSerialSlice) Len() int
- func (s *NodeSerialSlice) TableName() string
- func (s *NodeSerialSlice) UpdateColumns() (columnList []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeIdData ¶
NewNodeIdData new data repo
Types ¶
type NodeIdSlice ¶
NodeIdSlice 表切片
func (*NodeIdSlice) ConflictActionForMySQL ¶
func (s *NodeIdSlice) ConflictActionForMySQL() (req *gormpkg.BatchInsertConflictActionReq)
ConflictActionForMySQL 更新冲突时的操作
func (*NodeIdSlice) ConflictActionForPostgres ¶
func (s *NodeIdSlice) ConflictActionForPostgres() (req *gormpkg.BatchInsertConflictActionReq)
ConflictActionForPostgres 更新冲突时的操作
func (*NodeIdSlice) InsertColumns ¶
func (s *NodeIdSlice) InsertColumns() (columnList []string, placeholder string)
InsertColumns 批量入库的列
func (*NodeIdSlice) InsertValues ¶
func (s *NodeIdSlice) InsertValues(args *gormpkg.BatchInsertValueArgs) (prepareData []interface{}, placeholderSlice []string)
InsertValues 批量入库的值
func (*NodeIdSlice) UpdateColumns ¶
func (s *NodeIdSlice) UpdateColumns() (columnList []string)
UpdateColumns 批量入库的列
type NodeSerialSlice ¶
type NodeSerialSlice []*po.NodeSerial
NodeSerialSlice 表切片
func (*NodeSerialSlice) ConflictActionForMySQL ¶
func (s *NodeSerialSlice) ConflictActionForMySQL() (req *gormpkg.BatchInsertConflictActionReq)
ConflictActionForMySQL 更新冲突时的操作
func (*NodeSerialSlice) ConflictActionForPostgres ¶
func (s *NodeSerialSlice) ConflictActionForPostgres() (req *gormpkg.BatchInsertConflictActionReq)
ConflictActionForPostgres 更新冲突时的操作
func (*NodeSerialSlice) InsertColumns ¶
func (s *NodeSerialSlice) InsertColumns() (columnList []string, placeholder string)
InsertColumns 批量入库的列
func (*NodeSerialSlice) InsertValues ¶
func (s *NodeSerialSlice) InsertValues(args *gormpkg.BatchInsertValueArgs) (prepareData []interface{}, placeholderSlice []string)
InsertValues 批量入库的值
func (*NodeSerialSlice) UpdateColumns ¶
func (s *NodeSerialSlice) UpdateColumns() (columnList []string)
UpdateColumns 批量入库的列
Click to show internal directories.
Click to hide internal directories.