- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 62 for Associations (0.07 seconds)
-
callbacks/associations.go
} if len(selects) > 0 { tx = tx.Select(selects) } else if restricted && len(omits) == 0 { tx = tx.Omit(clause.Associations) } if len(omits) > 0 { tx = tx.Omit(omits...) } return db.AddError(tx.Create(values).Error) } // check association values has been saved // if values kind is Struct, check it has been saved // if values kind is Slice/Array, check all items have been saved
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Feb 13 06:16:26 GMT 2025 - 14.4K bytes - Click Count (0) -
tests/update_has_one_test.go
} if err := DB.AutoMigrate(&CustomizeAccount{}); err != nil { t.Fatalf("failed to migrate, got error: %v", err) } number := "number-has-one-associations" cusUser := CustomizeUser{ Name: "update-has-one-associations", Account: CustomizeAccount{ Number: number, Number2: number, }, } if err := DB.Create(&cusUser).Error; err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jul 14 06:55:54 GMT 2022 - 3.6K bytes - Click Count (0) -
tests/association_generics_test.go
} // Test Set + Update with multiple association operations assocOp1 := clause.Association{ Association: "Pets", Type: clause.OpCreate, Set: []clause.Assignment{ {Column: clause.Column{Name: "name"}, Value: "test-pet-1"}, }, } assocOp2 := clause.Association{ Association: "Toys", Type: clause.OpCreate, Set: []clause.Assignment{Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
clause/clause.go
builder.WriteByte(' ') c.AfterExpression.Build(builder) } } } const ( PrimaryKey string = "~~~py~~~" // primary key CurrentTable string = "~~~ct~~~" // current table Associations string = "~~~as~~~" // associations ) var ( currentTable = Table{Name: CurrentTable} PrimaryColumn = Column{Table: CurrentTable, Name: PrimaryKey} ) // Column quote with name type Column struct { Table string
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 1.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RangeMap.java
*/ void putCoalescing(Range<K> range, V value); /** Puts all the associations from {@code rangeMap} into this range map (optional operation). */ void putAll(RangeMap<K, ? extends V> rangeMap); /** Removes all associations from this range map (optional operation). */ void clear(); /** * Removes all associations from this range map in the specified range (optional operation). *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/RangeMap.java
*/ void putCoalescing(Range<K> range, V value); /** Puts all the associations from {@code rangeMap} into this range map (optional operation). */ void putAll(RangeMap<K, ? extends V> rangeMap); /** Removes all associations from this range map (optional operation). */ void clear(); /** * Removes all associations from this range map in the specified range (optional operation). *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 7.6K bytes - Click Count (0) -
tests/preload_test.go
}, AddressID: org.AddressID, Address: nil, NestedAddress: org.NestedAddress, }, }, { name: "associations", preloads: map[string][]interface{}{ clause.Associations: {}, // clause.Associations won’t preload nested associations "Address.Country": {}, }, expect: org, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jun 12 10:00:47 GMT 2024 - 15.9K bytes - Click Count (0) -
README.md
[](https://pkg.go.dev/gorm.io/gorm?tab=doc) ## Overview * Full-Featured ORM * Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance) * Hooks (Before/After Create/Save/Update/Delete/Find) * Eager loading with `Preload`, `Joins`
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Oct 30 09:30:20 GMT 2025 - 1.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableRangeMap.java
checkNotNull(value); checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range); entries.add(immutableEntry(range, value)); return this; } /** Copies all associations from the specified range map into this builder. */ @CanIgnoreReturnValue public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 14.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableRangeMap.java
checkNotNull(value); checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range); entries.add(immutableEntry(range, value)); return this; } /** Copies all associations from the specified range map into this builder. */ @CanIgnoreReturnValue public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 14.4K bytes - Click Count (0)