- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MapIndex (0.33 sec)
-
schema/utils.go
switch reflectValue.Kind() { case reflect.Map: results = [][]interface{}{make([]interface{}, len(fields))} for idx, field := range fields { mapValue := reflectValue.MapIndex(reflect.ValueOf(field.DBName)) if mapValue.IsZero() { mapValue = reflectValue.MapIndex(reflect.ValueOf(field.Name)) } results[0][idx] = mapValue.Interface() } dataResults[utils.ToStringKey(results[0]...)] = []reflect.Value{reflectValue}
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Oct 30 11:15:36 UTC 2025 - 5.9K bytes - Viewed (0) -
association.go
for _, key := range mapv.MapKeys() { k := strings.ToLower(key.String()) if f, ok := association.Relationship.FieldSchema.FieldsByDBName[k]; ok { _ = f.Set(association.DB.Statement.Context, child, mapv.MapIndex(key).Interface()) } } appendToFieldValues(child) } } switch rv.Kind() { case reflect.Map: processMap(rv) case reflect.Slice, reflect.Array:
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Oct 26 12:09:12 UTC 2025 - 23.6K bytes - Viewed (0)