Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for formatName (0.18 sec)

  1. schema/naming.go

    	return ns.formatName("fk", rel.Schema.Table, ns.toDBName(rel.Name))
    }
    
    // CheckerName generate checker name
    func (ns NamingStrategy) CheckerName(table, column string) string {
    	return ns.formatName("chk", table, column)
    }
    
    // IndexName generate index name
    func (ns NamingStrategy) IndexName(table, column string) string {
    	return ns.formatName("idx", table, ns.toDBName(column))
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K 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)
  3. src/archive/tar/format.go

    func (f *Format) mustNotBe(f2 Format) { *f &^= f2 }
    
    var formatNames = map[Format]string{
    	formatV7: "V7", FormatUSTAR: "USTAR", FormatPAX: "PAX", FormatGNU: "GNU", formatSTAR: "STAR",
    }
    
    func (f Format) String() string {
    	var ss []string
    	for f2 := Format(1); f2 < formatMax; f2 <<= 1 {
    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    	case 0:
    		return "<unknown>"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
Back to top