Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for hasAny (0.05 sec)

  1. cmd/admin-handlers-idp-config.go

    				return
    			}
    
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    
    		hasEnv := false
    		for _, ci := range cfgInfos {
    			if ci.IsCfg && ci.IsEnv {
    				hasEnv = true
    				break
    			}
    		}
    
    		if hasEnv {
    			writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigEnvOverridden), r.URL)
    			return
    		}
    	case madmin.LDAPIDPCfg:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. 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: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:31:09 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  3. internal/s3select/sql/timestampfuncs.go

    	hasSecond := t.Second() != 0
    	hasTime := t.Hour() != 0 || t.Minute() != 0
    	hasDay := t.Day() != 1
    	hasMonth := t.Month() != 1
    
    	switch {
    	case hasFracSecond:
    		return t.Format(layoutNanosecond)
    	case hasSecond:
    		return t.Format(layoutSecond)
    	case hasTime || hasZone:
    		return t.Format(layoutMinute)
    	case hasDay:
    		return t.Format(layoutDay)
    	case hasMonth:
    		return t.Format(layoutMonth)
    	default:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. tests/association_generics_test.go

    		t.Fatalf("expected language row still exists, got %d", count)
    	}
    }
    
    // Multi-owners: HasMany update and delete
    func TestClauseAssociationSetUpdateAndDeleteManyOwnersHasMany(t *testing.T) {
    	ctx := context.Background()
    	u1 := User{Name: "MultiOwners-HasMany-1", Age: 21}
    	u1.Pets = []*Pet{{Name: "p1"}}
    	u2 := User{Name: "MultiOwners-HasMany-2", Age: 22}
    	u2.Pets = []*Pet{{Name: "p2"}}
    	if err := DB.Create(&u1).Error; err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
  5. 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: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. generics.go

    		}
    	}
    
    	assocDB := s.c.g.db.Session(&Session{NewDB: true, Context: ctx}).Model(assocModel).Where(op.Conditions)
    
    	switch rel.Type {
    	case schema.HasOne, schema.HasMany:
    		assocDB = assocDB.Where("? IN (?)", foreignColumns, base.Select(ownerPKNames))
    		switch op.Type {
    		case clause.OpUnlink:
    			return assocDB.Updates(fkNil).Error
    		case clause.OpDelete:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
Back to top