Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCustomizedTypePrimaryKey (0.34 sec)

  1. tests/query_test.go

    	if user.Name != "select_with_array" || user.Age != 42 {
    		t.Errorf("Should have selected both age and name")
    	}
    }
    
    func TestCustomizedTypePrimaryKey(t *testing.T) {
    	type ID uint
    	type CustomizedTypePrimaryKey struct {
    		ID   ID
    		Name string
    	}
    
    	DB.Migrator().DropTable(&CustomizedTypePrimaryKey{})
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
Back to top