- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for SelectAndOmitColumns (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
callbacks/helper.go
// when the length of mapValues is zero,return directly here // no need to call stmt.SelectAndOmitColumns method if len(mapValues) == 0 { stmt.AddError(gorm.ErrEmptySlice) return } var ( result = make(map[string][]interface{}, len(mapValues)) selectColumns, restricted = stmt.SelectAndOmitColumns(true, false) ) for idx, mapValue := range mapValues { for k, v := range mapValue {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Apr 14 12:32:57 GMT 2022 - 3.7K bytes - Click Count (0) -
statement.go
columnName := matches[3] if star != "" { return table, star } return table, columnName } return "", "" } }() // SelectAndOmitColumns get select and omit columns, select -> true, omit -> false func (stmt *Statement) SelectAndOmitColumns(requireCreate, requireUpdate bool) (map[string]bool, bool) { results := map[string]bool{} notRestricted := false
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 20.9K bytes - Click Count (0) -
callbacks/create.go
values = ConvertSliceOfMapToValuesForCreate(stmt, value) case *[]map[string]interface{}: values = ConvertSliceOfMapToValuesForCreate(stmt, *value) default: var ( selectColumns, restricted = stmt.SelectAndOmitColumns(true, false) _, updateTrackTime = stmt.Get("gorm:update_track_time") isZero bool ) stmt.Settings.Delete("gorm:update_track_time")
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0) -
association.go
} } } selectedSaveColumns := []string{association.Relationship.Name} omitColumns := []string{} selectColumns, _ := association.DB.Statement.SelectAndOmitColumns(true, false) for name, ok := range selectColumns { columnName := "" if strings.HasPrefix(name, association.Relationship.Name) {Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Oct 26 12:09:12 GMT 2025 - 23.6K bytes - Click Count (0)