Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nmap (0.13 sec)

  1. tests/migrate_test.go

    		t.Fatalf("Failed to find has one constraint between people and managers")
    	}
    }
    
    func TestSmartMigrateColumn(t *testing.T) {
    	fullSupported := map[string]bool{"mysql": true, "postgres": true}[DB.Dialector.Name()]
    
    	type UserMigrateColumn struct {
    		ID       uint
    		Name     string
    		Salary   float64
    		Birthday time.Time `gorm:"precision:4"`
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    	}
    }
    
    func TestSearchWithMap(t *testing.T) {
    	users := []User{
    		*GetUser("map_search_user1", Config{}),
    		*GetUser("map_search_user2", Config{}),
    		*GetUser("map_search_user3", Config{}),
    		*GetUser("map_search_user4", Config{Company: true}),
    	}
    
    	DB.Create(&users)
    
    	var user User
    	DB.First(&user, map[string]interface{}{"name": users[0].Name})
    	CheckUser(t, user, users[0])
    
    	user = User{}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top