Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DUPLICATE_REGEX = regexp.MustCompile(`(?i)\bduplicate\b`)
)
Functions ¶
func IsDuplicateError ¶
Types ¶
type NoPKModel ¶
type NoPKModel struct { CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` RawDataOrigin }
type RawDataOrigin ¶ added in v0.10.0
type RawDataOrigin struct { // can be used for flushing outdated records from table RawDataParams string `gorm:"column:_raw_data_params;type:varchar(255);index" json:"_raw_data_params"` RawDataTable string `gorm:"column:_raw_data_table;type:varchar(255)" json:"_raw_data_table"` // can be used for debugging RawDataId uint64 `gorm:"column:_raw_data_id" json:"_raw_data_id"` // we can store record index into this field, which is helpful for debugging RawDataRemark string `gorm:"column:_raw_data_remark" json:"_raw_data_remark"` }
embedded fields for tool layer tables
Click to show internal directories.
Click to hide internal directories.