Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for class (0.16 sec)

  1. migrator/migrator.go

    					defer func(value interface{}, name string) {
    						if err == nil {
    							err = tx.Migrator().CreateIndex(value, name)
    						}
    					}(value, idx.Name)
    				} else {
    					if idx.Class != "" {
    						createTableSQL += idx.Class + " "
    					}
    					createTableSQL += "INDEX ? ?"
    
    					if idx.Comment != "" {
    						createTableSQL += fmt.Sprintf(" COMMENT '%s'", idx.Comment)
    					}
    
    					if idx.Option != "" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. schema/index.go

    			if err != nil {
    				schema.err = err
    				break
    			}
    			for _, index := range fieldIndexes {
    				idx := indexes[index.Name]
    				idx.Name = index.Name
    				if idx.Class == "" {
    					idx.Class = index.Class
    				}
    				if idx.Type == "" {
    					idx.Type = index.Type
    				}
    				if idx.Where == "" {
    					idx.Where = index.Where
    				}
    				if idx.Comment == "" {
    					idx.Comment = index.Comment
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  3. schema/index_test.go

    				Length:  10,
    			}},
    		},
    		"idx_user_indices_name4": {
    			Name:   "idx_user_indices_name4",
    			Class:  "UNIQUE",
    			Fields: []schema.IndexOption{{Field: &schema.Field{Name: "Name4", UniqueIndex: "idx_user_indices_name4"}}},
    		},
    		"idx_user_indices_name5": {
    			Name:    "idx_user_indices_name5",
    			Class:   "FULLTEXT",
    			Comment: "hello , world",
    			Where:   "age > 10",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top