Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Jasmans (0.17 sec)

  1. src/cmd/internal/obj/x86/asm6.go

    			case Zm_r:
    				ab.Put1(byte(op))
    				ab.asmand(ctxt, cursym, p, &p.From, &p.To)
    
    			case Z_m_r:
    				ab.Put1(byte(op))
    				ab.asmand(ctxt, cursym, p, p.GetFrom3(), &p.To)
    
    			case Zm2_r:
    				ab.Put2(byte(op), o.op[z+1])
    				ab.asmand(ctxt, cursym, p, &p.From, &p.To)
    
    			case Zm_r_xm:
    				ab.mediaop(ctxt, o, op, int(yt.zoffset), z)
    				ab.asmand(ctxt, cursym, p, &p.From, &p.To)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  2. tests/associations_has_many_test.go

    	}
    
    	AssertAssociationCount(t, user2, "Team", 0, "after clear")
    }
    
    func TestHasManyAssociationForSlice(t *testing.T) {
    	users := []User{
    		*GetUser("slice-hasmany-1", Config{Pets: 2}),
    		*GetUser("slice-hasmany-2", Config{Pets: 0}),
    		*GetUser("slice-hasmany-3", Config{Pets: 4}),
    	}
    
    	DB.Create(&users)
    
    	// Count
    	AssertAssociationCount(t, users, "Pets", 6, "")
    
    	// Find
    	var pets []Pet
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. schema/relationship_test.go

    		UserRefer uint
    	}
    
    	type User struct {
    		gorm.Model
    		Profile []Profile `gorm:"ForeignKey:UserRefer"`
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    		Name: "Profile", Type: schema.HasMany, Schema: "User", FieldSchema: "Profile",
    		References: []Reference{{"ID", "User", "UserRefer", "Profile", "", true}},
    	})
    }
    
    func TestHasManyOverrideReferences(t *testing.T) {
    	type Profile struct {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. schema/relationship.go

    			relation.Type = HasOne
    		case reflect.Slice:
    			relation.Type = HasMany
    		}
    	}
    
    	if schema.err == nil {
    		schema.setRelation(relation)
    		switch relation.Type {
    		case HasOne:
    			schema.Relationships.HasOne = append(schema.Relationships.HasOne, relation)
    		case HasMany:
    			schema.Relationships.HasMany = append(schema.Relationships.HasMany, relation)
    		case BelongsTo:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. schema/schema_test.go

    			References: []Reference{{"ID", "User", "UserID", "Account", "", true}},
    		},
    		{
    			Name: "Pets", Type: schema.HasMany, Schema: "User", FieldSchema: "Pet",
    			References: []Reference{{"ID", "User", "UserID", "Pet", "", true}},
    		},
    		{
    			Name: "Toys", Type: schema.HasMany, Schema: "User", FieldSchema: "Toy",
    			Polymorphic: Polymorphic{ID: "OwnerID", Type: "OwnerType", Value: "users"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/flags_test.go

    	}
    	coverage := map[flagConstant]bool{}
    	for _, x := range numbers {
    		for _, y := range numbers {
    			a := logicFlags64(x & y)
    			b := flagRegister2flagConstant(asmAndFlags(x, y), false)
    			if a != b {
    				t.Errorf("asmAnd diff: x=%x y=%x got=%s want=%s\n", x, y, a, b)
    			}
    			coverage[a] = true
    		}
    	}
    	if len(coverage) != 3 {
    		t.Errorf("coverage too small, got %d want 3", len(coverage))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:36:17 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  7. association.go

    			if association.Unscope && oldBelongsToExpr != nil {
    				association.Error = association.DB.Model(nil).Where(oldBelongsToExpr).Delete(reflect.New(rel.FieldSchema.ModelType).Interface()).Error
    			}
    		case schema.HasOne, schema.HasMany:
    			var (
    				primaryFields []*schema.Field
    				foreignKeys   []string
    				updateMap     = map[string]interface{}{}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. callbacks/preload.go

    		}
    	}
    
    	fieldValues := make([]interface{}, len(relForeignFields))
    
    	// clean up old values before preloading
    	switch reflectValue.Kind() {
    	case reflect.Struct:
    		switch rel.Type {
    		case schema.HasMany, schema.Many2Many:
    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    		default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. callbacks/delete.go

    			if !v {
    				continue
    			}
    
    			rel, ok := db.Statement.Schema.Relationships.Relations[column]
    			if !ok {
    				continue
    			}
    
    			switch rel.Type {
    			case schema.HasOne, schema.HasMany:
    				queryConds := rel.ToQueryConditions(db.Statement.Context, db.Statement.ReflectValue)
    				modelValue := reflect.New(rel.FieldSchema.ModelType).Interface()
    				tx := db.Session(&gorm.Session{NewDB: true}).Model(modelValue)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Feb 25 02:48:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  10. migrator/migrator.go

    	if uni, ok := uniqueConstraints[name]; ok {
    		return &uni, stmt.Table
    	}
    
    	getTable := func(rel *schema.Relationship) string {
    		switch rel.Type {
    		case schema.HasOne, schema.HasMany:
    			return rel.FieldSchema.Table
    		case schema.Many2Many:
    			return rel.JoinTable.Table
    		}
    		return stmt.Table
    	}
    
    	for _, rel := range stmt.Schema.Relationships.Relations {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top