- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 74 for assignee (0.05 seconds)
-
generics.go
func (c chainG[T]) processSet(items ...clause.Assigner) setCreateOrUpdateG[T] { var ( assigns []clause.Assignment assocOps []clause.Association ) for _, item := range items { // Check if it's an AssociationAssigner if assocAssigner, ok := item.(clause.AssociationAssigner); ok { assocOps = append(assocOps, assocAssigner.AssociationAssignments()...) } else { assigns = append(assigns, item.Assignments()...) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 25.9K bytes - Click Count (0) -
tests/serializer_test.go
IsIntern: false, }, CustomSerializerString: "world", } // first time insert record out := SerializerStruct{} if err := DB.Assign(data).FirstOrCreate(&out).Error; err != nil { t.Fatalf("failed to FirstOrCreate Assigned data, got error %v", err) } var result SerializerStruct if err := DB.First(&result, out.ID).Error; err != nil { t.Fatalf("failed to query data, got error %v", err)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 9.3K bytes - Click Count (0) -
finisher_api.go
} // initialize with attrs, conds if len(db.Statement.assigns) > 0 { result.assignInterfacesToValue(db.Statement.assigns...) } return tx.Create(dest) } else if len(db.Statement.assigns) > 0 { exprs := tx.Statement.BuildCondition(db.Statement.assigns[0], db.Statement.assigns[1:]...) assigns := map[string]interface{}{} for i := 0; i < len(exprs); i++ { expr := exprs[i]
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 22.9K bytes - Click Count (0) -
chainable_api.go
tx.Statement.attrs = attrs return } // Assign provide attributes used in [FirstOrCreate] or [FirstOrInit] // // Assign adds attributes even if the record is found. If using FirstOrCreate, this means that // records will be updated even if they are found. // // // assign an email regardless of if the record is not found // db.Where(User{Name: "non_existing"}).Assign(User{Email: "******@****.***"}).FirstOrInit(&user)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 14.8K bytes - Click Count (0) -
clause/set.go
package clause import "sort" type Set []Assignment type Assignment struct { Column Column Value interface{} } // Assigner assignments provider interface type Assigner interface { Assignments() []Assignment } func (set Set) Name() string { return "SET" } func (set Set) Build(builder Builder) { if len(set) > 0 { for idx, assignment := range set { if idx > 0 { builder.WriteByte(',')
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Sep 09 01:34:33 GMT 2025 - 1.7K bytes - Click Count (0) -
clause/set_test.go
package clause_test import ( "fmt" "sort" "strings" "testing" "gorm.io/gorm/clause" ) // Compile-time assertions that types implement clause.Assigner var ( _ clause.Assigner = clause.Assignment{} _ clause.Assigner = clause.Set{} ) func TestSet(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Sep 08 11:18:54 GMT 2025 - 1.5K bytes - Click Count (0) -
.github/workflows/stale-issues.yml
uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0 with: #Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale exempt-issue-labels: 'override-stale' #Comma separated list of labels that can be assigned to PRs to exclude them from being marked as stale exempt-pr-labels: "override-stale"Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Sat Nov 01 08:08:54 GMT 2025 - 4.1K bytes - Click Count (0) -
tests/generics_test.go
for i, assoc := range associations { assigns := assoc.AssociationAssignments() if len(assigns) != 1 { t.Errorf("Association %d should return one assignment, got %v", i, len(assigns)) } if assigns[0].Association != assoc.Association { t.Errorf("Association %d name should be %s, got %v", i, assoc.Association, assigns[0].Association) } }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 33.7K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/20_contributor_feature_request.yml
name: Feature request description: Suggest an idea for this project labels: [ "a:feature", "to-triage" ] assignees: [ ] body: - type: markdown attributes: value: | Please follow the instructions below. We receive dozens of issues every week, so to stay productive, we will close issues that don't provide enough information.Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Nov 27 15:48:22 GMT 2025 - 1.5K bytes - Click Count (0) -
clause/association.go
} // AssociationAssigner is an interface for association operation providers type AssociationAssigner interface { AssociationAssignments() []Association } // Assignments implements the Assigner interface so that AssociationOperation can be used as a Set method parameter func (ao Association) Assignments() []Assignment { return []Assignment{} } // AssociationAssignments implements the AssociationAssigner interfaceCreated: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 1.2K bytes - Click Count (0)