- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 29 for Assignment (0.08 seconds)
-
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) -
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) -
tests/test_union_body_discriminator_annotated.py
{ "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/pet/assignment": { "post": { "summary": "Create Pet Assignment", "operationId": "create_pet_assignment_pet_assignment_post", "requestBody": { "content": {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 7.7K 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) -
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) -
doc/go_spec.html
IncDec statement Assignment x++ x += 1 x-- x -= 1 </pre> <h3 id="Assignment_statements">Assignment statements</h3> <p> An <i>assignment</i> replaces the current value stored in a <a href="#Variables">variable</a> with a new value specified by an <a href="#Expressions">expression</a>. An assignment statement may assign a single value to a single variable, or multiple values to a
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 02 23:07:19 GMT 2025 - 286.5K bytes - Click Count (1) -
docs/en/docs/tutorial/extra-models.md
If it was in a type annotation we could have used the vertical bar, as: ```Python some_variable: PlaneItem | CarItem ``` But if we put that in the assignment `response_model=PlaneItem | CarItem` we would get an error, because Python would try to perform an **invalid operation** between `PlaneItem` and `CarItem` instead of interpreting that as a type annotation.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.9K bytes - Click Count (0)