Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 55 of 55 for Update (0.17 sec)

  1. tests/query_test.go

    	}
    }
    
    func TestScanNullValue(t *testing.T) {
    	user := GetUser("scan_null_value", Config{})
    	DB.Create(&user)
    
    	if err := DB.Model(&user).Update("age", nil).Error; err != nil {
    		t.Fatalf("failed to update column age for struct, got error %v", err)
    	}
    
    	var result User
    	if err := DB.First(&result, "id = ?", user.ID).Error; err != nil {
    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)
  2. schema/relationship.go

    	sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??"
    	if constraint.OnDelete != "" {
    		sql += " ON DELETE " + constraint.OnDelete
    	}
    
    	if constraint.OnUpdate != "" {
    		sql += " ON UPDATE " + constraint.OnUpdate
    	}
    
    	foreignKeys := make([]interface{}, 0, len(constraint.ForeignKeys))
    	for _, field := range constraint.ForeignKeys {
    		foreignKeys = append(foreignKeys, clause.Column{Name: field.DBName})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  3. schema/field.go

    		field.Creatable = true
    		field.Updatable = true
    
    		if v != "<-" {
    			if !strings.Contains(v, "create") {
    				field.Creatable = false
    			}
    
    			if !strings.Contains(v, "update") {
    				field.Updatable = false
    			}
    		}
    	}
    
    	// Normal anonymous field or having `EMBEDDED` tag
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  4. .github/workflows/missing_playground.yml

            stale-issue-label: "status:stale"
            days-before-stale: 0
            days-before-close: 30
            remove-stale-when-updated: true
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 02:27:05 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  5. association.go

    			appendToRelations(reflectValue.Index(i), reflect.Indirect(reflect.ValueOf(values[i])), clear)
    
    			// TODO support save slice data, sql with case?
    			association.Error = associationDB.Updates(reflectValue.Index(i).Addr().Interface()).Error
    		}
    	case reflect.Struct:
    		// clear old data
    		if clear && len(values) == 0 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
Back to top