Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for note (0.14 sec)

  1. tests/named_argument_test.go

    		t.Errorf("should return record not found error, but got %v", err)
    	}
    
    	DB.Delete(&namedUser)
    
    	var result8 NamedUser
    	if err := DB.Where("name1 = @name OR name2 = @name", map[string]interface{}{"name": "jinzhu-new"}).First(&result8).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) {
    		t.Errorf("should return record not found error, but got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Dec 21 11:50:00 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  2. schema/index_test.go

    		},
    		"idx_user_indices_name8": {
    			Name: "idx_user_indices_name8",
    			Type: "",
    			Fields: []schema.IndexOption{
    				{Field: &schema.Field{Name: "Name8"}, Length: 10},
    				// Note: Duplicate Columns
    				{Field: &schema.Field{Name: "Name8"}, Collate: "utf8"},
    			},
    		},
    		"idx_user_indices_comp_id0": {
    			Name: "idx_user_indices_comp_id0",
    			Type: "",
    			Fields: []schema.IndexOption{{
    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/index.go

    	Class   string // UNIQUE | FULLTEXT | SPATIAL
    	Type    string // btree, hash, gist, spgist, gin, and brin
    	Where   string
    	Comment string
    	Option  string        // WITH PARSER parser_name
    	Fields  []IndexOption // Note: IndexOption's Field maybe the same
    }
    
    type IndexOption struct {
    	*Field
    	Expression string
    	Sort       string // DESC, ASC
    	Collate    string
    	Length     int
    	priority   int
    }
    
    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)
  4. tests/query_test.go

    		t.Fatalf("Build NOT condition, but got %v", result.Statement.SQL.String())
    	}
    
    	result = dryDB.Not("name = ?", "jinzhu").Find(&User{})
    	if !regexp.MustCompile("SELECT \\* FROM .*users.* WHERE NOT.*name.* = .+").MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("Build NOT condition, but got %v", result.Statement.SQL.String())
    	}
    
    	result = dryDB.Not(map[string]interface{}{"name": []string{}}).Find(&User{})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top