Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BindName (0.35 sec)

  1. schema/schema.go

    			}
    		}
    	}
    
    	for _, field := range schema.Fields {
    		if field.DBName == "" && field.DataType != "" {
    			field.DBName = namer.ColumnName(schema.Table, field.Name)
    		}
    
    		bindName := field.BindName()
    		if field.DBName != "" {
    			// nonexistence or shortest path or first appear prioritized if has permission
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 19 06:35:49 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. schema/field.go

    	// It causes field unnecessarily migration.
    	// Therefore, we need to record the UniqueIndex on this column (exclude Mul UniqueIndex) for MigrateColumnUnique.
    	UniqueIndex string
    }
    
    func (field *Field) BindName() string {
    	return strings.Join(field.BindNames, ".")
    }
    
    // ParseField parses reflect.StructField to Field
    func (schema *Schema) ParseField(fieldStruct reflect.StructField) *Field {
    	var (
    		err        error
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
Back to top