Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FieldH1 (0.09 sec)

  1. schema/index_test.go

    		FieldE1 string `gorm:"uniqueIndex:uniq_field_e1_e2"` // mul uniqueIndex
    		FieldE2 string `gorm:"uniqueIndex:uniq_field_e1_e2"`
    
    		FieldF1 string `gorm:"uniqueIndex:uniq_field_f1_f2;index"` // mul uniqueIndex and index
    		FieldF2 string `gorm:"uniqueIndex:uniq_field_f1_f2;"`
    
    		FieldG string `gorm:"unique;uniqueIndex"` // unique and uniqueIndex
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    		db.Logger = db.Logger.LogMode(logger.Silent)
    	}
    
    	type Object1 struct {
    		ID uint
    	}
    	type Object2 struct {
    		ID     uint
    		Field1 int `gorm:"type:int8"`
    	}
    	type Object3 struct {
    		ID     uint
    		Field1 int `gorm:"type:int4"`
    	}
    	type Object4 struct {
    		ID     uint
    		Field2 int
    	}
    	db.Migrator().DropTable("objects")
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    As a consequence, redeclaration can only appear in a multi-variable short declaration.
    Redeclaration does not introduce a new variable; it just assigns a new value to the original.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    a, a := 1, 2                              // illegal: double declaration of a or no new variable if a was declared elsewhere
    </pre>
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    The non-blank variable names on the left side of <code>:=</code>
    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    x, y, x := 1, 2, 3                        // illegal: x repeated on left side of :=
    </pre>
    
    <p>
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (1)
Back to top