Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 63 (0.2 sec)

  1. tests/table_test.go

    		}
    
    		constraints := user.ParseUniqueConstraints()
    		if len(constraints) != 1 {
    			t.Fatalf("failed to find unique constraint, got %v", constraints)
    		}
    
    		for key := range constraints {
    			if len(key) != 63 {
    				t.Errorf("failed to find unique constraint, got %v", constraints)
    			}
    		}
    	})
    
    	t.Run("naming strategy", func(t *testing.T) {
    		db, _ := gorm.Open(postgres.Open(postgresDSN), &gorm.Config{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. schema/naming_test.go

    		t.Errorf("invalid column name generated, got %v", columdName)
    	}
    }
    
    func TestFormatNameWithStringLongerThan63Characters(t *testing.T) {
    	ns := NamingStrategy{IdentifierMaxLength: 63}
    
    	formattedName := ns.formatName("prefix", "table", "thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString")
    	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVer180f2c67" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue May 30 02:00:48 GMT 2023
    - 7K bytes
    - Viewed (0)
Back to top