- Sort Score
- Result 10 results
- Languages All
Results 31 - 36 of 36 for doUpdate (1.81 sec)
-
src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsWebConfigBhv.java
doInsert(entity, null); } public void update(WebConfig entity) { doUpdate(entity, null); } public void update(WebConfig entity, RequestOptionCall<IndexRequestBuilder> opLambda) { entity.asDocMeta().indexOption(opLambda); doUpdate(entity, null); } public void insertOrUpdate(WebConfig entity) { doInsertOrUpdate(entity, null, null);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 10.9K bytes - Viewed (0) -
clause/on_conflict.go
package clause type OnConflict struct { Columns []Column Where Where TargetWhere Where OnConstraint string DoNothing bool DoUpdates Set UpdateAll bool } func (OnConflict) Name() string { return "ON CONFLICT" } // Build build onConflict clause func (onConflict OnConflict) Build(builder Builder) { if onConflict.OnConstraint != "" { builder.WriteString("ON CONSTRAINT ")
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Oct 07 05:46:20 UTC 2022 - 1.3K bytes - Viewed (0) -
callbacks/create.go
} onConflict.DoUpdates = append(onConflict.DoUpdates, assignment) } else { columns = append(columns, column.Name) } } } } } onConflict.DoUpdates = append(onConflict.DoUpdates, clause.AssignmentColumns(columns)...) if len(onConflict.DoUpdates) == 0 { onConflict.DoNothing = true }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 29 11:06:13 UTC 2025 - 13K bytes - Viewed (0) -
tests/upsert_test.go
t.Errorf("should only find only 1 languages, but got %+v", langs) } lang3 := Language{Code: "upsert", Name: "Upsert"} if err := DB.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "code"}}, DoUpdates: clause.Assignments(map[string]interface{}{"name": "upsert-new"}), }).Create(&lang3).Error; err != nil { t.Fatalf("failed to upsert, got %v", err) } if err := DB.Find(&langs, "code = ?", lang.Code).Error; err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 29 11:06:13 UTC 2025 - 13.1K bytes - Viewed (0) -
callbacks/associations.go
onConflict.Columns = append(onConflict.Columns, clause.Column{Name: dbName}) } onConflict.UpdateAll = stmt.DB.FullSaveAssociations if !onConflict.UpdateAll { onConflict.DoUpdates = clause.AssignmentColumns(defaultUpdatingColumns) } } else { onConflict.DoNothing = true } return }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Feb 13 06:16:26 UTC 2025 - 14.4K bytes - Viewed (0) -
tests/generics_test.go
} lang3 := Language{Code: "upsert", Name: "Upsert"} if err := gorm.G[Language](DB, clause.OnConflict{ Columns: []clause.Column{{Name: "code"}}, DoUpdates: clause.Assignments(map[string]interface{}{"name": "upsert-new"}), }).Create(ctx, &lang3); err != nil { t.Fatalf("failed to upsert, got %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)