Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getOrParse (0.04 sec)

  1. schema/schema.go

    	case callbackTypeAfterFind:
    		return modelType.MethodByName(string(callbackTypeAfterFind))
    	default:
    		return reflect.ValueOf(nil)
    	}
    }
    
    func getOrParse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error) {
    	modelType := reflect.ValueOf(dest).Type()
    	for modelType.Kind() == reflect.Slice || modelType.Kind() == reflect.Array || modelType.Kind() == reflect.Ptr {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. schema/relationship.go

    			foreignKeys: toColumns(field.TagSettings["FOREIGNKEY"]),
    			primaryKeys: toColumns(field.TagSettings["REFERENCES"]),
    		}
    	)
    
    	cacheStore := schema.cacheStore
    
    	if relation.FieldSchema, err = getOrParse(fieldValue, cacheStore, schema.namer); err != nil {
    		schema.err = err
    		return nil
    	}
    
    	if hasPolymorphicRelation(field.TagSettings) {
    		schema.buildPolymorphicRelation(relation, field)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top