- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for Assignment (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
clause/set.go
} return assignments } func AssignmentColumns(values []string) Set { assignments := make([]Assignment, len(values)) for idx, value := range values { assignments[idx] = Assignment{Column: Column{Name: value}, Value: Column{Table: "excluded", Name: value}} } return assignments } // Assignments implements Assigner for a single Assignment.
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
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) -
callbacks/update.go
set = append(set, clause.Assignment{Column: clause.Column{Name: field.DBName}, Value: now.UnixNano()}) } else if field.AutoUpdateTime == schema.UnixMillisecond { set = append(set, clause.Assignment{Column: clause.Column{Name: field.DBName}, Value: now.UnixMilli()}) } else if field.AutoUpdateTime == schema.UnixSecond {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 9.6K bytes - Click Count (0) -
clause/association.go
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) -
callbacks/create.go
if field.AutoUpdateTime > 0 { assignment := clause.Assignment{Column: clause.Column{Name: field.DBName}, Value: curTime} switch field.AutoUpdateTime { case schema.UnixNanosecond: assignment.Value = curTime.UnixNano() case schema.UnixMillisecond: assignment.Value = curTime.UnixMilli() case schema.UnixSecond: assignment.Value = curTime.Unix() }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0) -
tests/association_generics_test.go
} // Test Set + Create with belongs-to association using field assignment err := gorm.G[User](DB).Set( clause.Assignment{Column: clause.Column{Name: "name"}, Value: "TestClauseAssociationSetCreateWithBelongsTo"}, clause.Assignment{Column: clause.Column{Name: "age"}, Value: 25}, clause.Assignment{Column: clause.Column{Name: "company_id"}, Value: company.ID}, ).Create(ctx) if err != nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
tests/generics_test.go
Type: clause.OpCreate, Set: []clause.Assignment{ {Column: clause.Column{Name: "amount"}, Value: 100}, {Column: clause.Column{Name: "state"}, Value: "new"}, }, } // Verify it implements Assigner interface assignments := assoc.Assignments() if len(assignments) != 0 { t.Errorf("Association.Assignments() should return empty slice, got %v", assignments) }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) -
android/guava/src/com/google/common/base/Ascii.java
* processing or telecommunication systems, more especially switching devices "on" or "off." (If a * single "stop" control is required to interrupt or turn off ancillary devices, DC4 is the * preferred assignment.) * * @since 8.0 */ public static final byte DC1 = 17; // aka XON /** * Transmission On: Although originally defined as DC1, this ASCII control character is now better
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 21.7K bytes - Click Count (0) -
generics.go
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()...) } } return setCreateOrUpdateG[T]{
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) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
/** * Test that getText throws exception when null stream is provided. * Note: validateInputStream throws the exception, so the validateCalled flag * is never set to true (exception is thrown before flag assignment). */ public void test_getText_throwsExceptionForNullStream() { try { extractor.getText(null, null); fail("Expected CrawlerSystemException");Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 8.4K bytes - Click Count (0)