Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fieldIdx (0.21 sec)

  1. schema/field.go

    		}
    	default:
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			v = reflect.Indirect(v)
    			for _, fieldIdx := range field.StructField.Index {
    				if fieldIdx >= 0 {
    					v = v.Field(fieldIdx)
    				} else {
    					v = v.Field(-fieldIdx - 1)
    
    					if !v.IsNil() {
    						v = v.Elem()
    					} else {
    						return nil, true
    					}
    				}
    			}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  2. schema/index_test.go

    		},
    		"idx_index_tests_field_d": {
    			Name:  "idx_index_tests_field_d",
    			Class: "UNIQUE",
    			Fields: []schema.IndexOption{
    				{Field: &schema.Field{Name: "FieldD"}},
    				// Note: Duplicate Columns
    				{Field: &schema.Field{Name: "FieldD"}},
    			},
    		},
    		"uniq_field_e1_e2": {
    			Name:  "uniq_field_e1_e2",
    			Class: "UNIQUE",
    			Fields: []schema.IndexOption{
    				{Field: &schema.Field{Name: "FieldE1"}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. schema/naming_test.go

    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