Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CONFLICT (0.48 sec)

  1. tests/upsert_test.go

    	} else if len(langs) != 1 {
    		t.Errorf("should only find only 1 languages, but got %+v", langs)
    	} else if langs[0].Name != "upsert-new" {
    		t.Errorf("should update name on conflict, but got name %+v", langs[0].Name)
    	}
    
    	lang = Language{Code: "upsert", Name: "Upsert-Newname"}
    	if err := DB.Clauses(clause.OnConflict{UpdateAll: true}).Create(&lang).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
  2. tests/create_test.go

    	AssertEqual(t, err, nil)
    
    	u := OnConflictUser{
    		ID:     "on-conflict-user-id",
    		Name:   "on-conflict-user-name",
    		Email:  "on-conflict-user-email",
    		Mobile: "on-conflict-user-mobile",
    	}
    	err = DB.Create(&u).Error
    	AssertEqual(t, err, nil)
    
    	u.Name = "on-conflict-user-name-2"
    	u.Email = "on-conflict-user-email-2"
    	u.Mobile = ""
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  3. callbacks/create.go

    		}
    
    		isDryRun := !db.DryRun && db.Error == nil
    		if !isDryRun {
    			return
    		}
    
    		ok, mode := hasReturning(db, supportReturning)
    		if ok {
    			if c, ok := db.Statement.Clauses["ON CONFLICT"]; ok {
    				if onConflict, _ := c.Expression.(clause.OnConflict); onConflict.DoNothing {
    					mode |= gorm.ScanOnConflictDoNothing
    				}
    			}
    
    			rows, err := db.Statement.ConnPool.QueryContext(
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. internal/event/target/postgresql.go

    	psqlCreateAccessTable    = `CREATE TABLE %s (event_time TIMESTAMP WITH TIME ZONE NOT NULL, event_data JSONB);`
    
    	psqlUpdateRow = `INSERT INTO %s (key, value) VALUES ($1, $2) ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;`
    	psqlDeleteRow = `DELETE FROM %s WHERE key = $1;`
    	psqlInsertRow = `INSERT INTO %s (event_time, event_data) VALUES ($1, $2);`
    )
    
    // Postgres constants
    const (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. finisher_api.go

    		reflectValue = reflect.Indirect(reflectValue)
    	}
    
    	switch reflectValue.Kind() {
    	case reflect.Slice, reflect.Array:
    		if _, ok := tx.Statement.Clauses["ON CONFLICT"]; !ok {
    			tx = tx.Clauses(clause.OnConflict{UpdateAll: true})
    		}
    		tx = tx.callbacks.Create().Execute(tx.Set("gorm:update_track_time", true))
    	case reflect.Struct:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    	if err != nil {
    		return err
    	}
    	// Check the newly generated webhook does not conflict with existing ones.
    	resName := webhookName
    	if resName == "" {
    		resName = fmt.Sprintf("%s-%s", "istio-revision-tag", tagName)
    	}
    	if err := analyzeWebhook(resName, istioNS, tagWhYAML, revision, kubeClient.RESTConfig()); err != nil {
    		// if we have a conflict, we will fail. If --skip-confirmation is set, we will continue with a
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  7. misc/go_android_exec/main.go

    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    	// Prepare a temporary directory that will be cleaned up at the end.
    	// Binary names can conflict.
    	// E.g. template.test from the {html,text}/template packages.
    	binName := filepath.Base(os.Args[1])
    	deviceGotmp := fmt.Sprintf(deviceRoot+"/%s-%d", binName, os.Getpid())
    	deviceGopath := deviceGotmp + "/gopath"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  8. cmd/object-lambda-handlers.go

    	"Not Acceptable":                  http.StatusNotAcceptable,
    	"Proxy Authentication Required":   http.StatusProxyAuthRequired,
    	"Request Timeout":                 http.StatusRequestTimeout,
    	"Conflict":                        http.StatusConflict,
    	"Gone":                            http.StatusGone,
    	"Length Required":                 http.StatusLengthRequired,
    	"Precondition Failed":             http.StatusPreconditionFailed,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  9. src/archive/tar/common.go

    			case h.Typeflag == TypeXGlobalHeader:
    				paxHdrs[k] = v // Copy all records
    			case !basicKeys[k] && !strings.HasPrefix(k, paxGNUSparse):
    				paxHdrs[k] = v // Ignore local records that may conflict
    			}
    		}
    		whyOnlyPAX = "only PAX supports PAXRecords"
    		format.mayOnlyBe(FormatPAX)
    	}
    	for k, v := range paxHdrs {
    		if !validPAXRecord(k, v) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  10. src/cmd/cgo/ast.go

    	}
    	return strings.Join(pieces, "")
    }
    
    func (f *File) validateIdents(x interface{}, context astContext) {
    	if x, ok := x.(*ast.Ident); ok {
    		if f.isMangledName(x.Name) {
    			error_(x.Pos(), "identifier %q may conflict with identifiers generated by cgo", x.Name)
    		}
    	}
    }
    
    // Save various references we are going to need later.
    func (f *File) saveExprs(x interface{}, context astContext) {
    	switch x := x.(type) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top