Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 836 for WHERE (0.01 seconds)

  1. tests/create_test.go

    	}
    
    	var result2 User
    	if err := DB.Where("name = ?", "create_from_map_2").First(&result2).Error; err != nil || result2.Age != 19 {
    		t.Fatalf("failed to query data after create from slice of map, got error %v", err)
    	}
    
    	var result3 User
    	if err := DB.Where("name = ?", "create_from_map_3").First(&result3).Error; err != nil || result3.Age != 20 {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Jul 21 09:55:20 GMT 2025
    - 26.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/TypeParameter.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * {@snippet :
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }
     *
     * @author Ben Yu
     * @since 12.0
     */
    /*
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. association.go

    			}
    			joinStmt.Build("WHERE")
    			if len(joinStmt.SQL.String()) > 0 {
    				tx.Clauses(clause.Expr{SQL: strings.Replace(joinStmt.SQL.String(), "WHERE ", "", 1), Vars: joinStmt.Vars})
    			}
    		}
    
    		tx = tx.Session(&Session{QueryFields: true}).Clauses(clause.From{Joins: []clause.Join{{
    			Table: clause.Table{Name: association.Relationship.JoinTable.Table},
    			ON:    clause.Where{Exprs: queryConds},
    		}}})
    	} else {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Oct 26 12:09:12 GMT 2025
    - 23.6K bytes
    - Click Count (0)
  4. callbacks/helper.go

    }
    
    func checkMissingWhereConditions(db *gorm.DB) {
    	if !db.AllowGlobalUpdate && db.Error == nil {
    		where, withCondition := db.Statement.Clauses["WHERE"]
    		if withCondition {
    			if _, withSoftDelete := db.Statement.Clauses["soft_delete_enabled"]; withSoftDelete {
    				whereClause, _ := where.Expression.(clause.Where)
    				withCondition = len(whereClause.Exprs) > 1
    			}
    		}
    		if !withCondition {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Apr 14 12:32:57 GMT 2022
    - 3.7K bytes
    - Click Count (0)
  5. clause/expression.go

    	Eq(neq).Build(builder)
    }
    
    // Gt greater than for where
    type Gt Eq
    
    func (gt Gt) Build(builder Builder) {
    	builder.WriteQuoted(gt.Column)
    	builder.WriteString(" > ")
    	builder.AddVar(builder, gt.Value)
    }
    
    func (gt Gt) NegationBuild(builder Builder) {
    	Lte(gt).Build(builder)
    }
    
    // Gte greater than or equal to for where
    type Gte Eq
    
    func (gte Gte) Build(builder Builder) {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Nov 04 07:04:52 GMT 2025
    - 8K bytes
    - Click Count (0)
  6. callbacks/query.go

    									onStmt.AddClause(c)
    								}
    
    								if join.On != nil {
    									onStmt.AddClause(join.On)
    								}
    
    								if cs, ok := onStmt.Clauses["WHERE"]; ok {
    									if where, ok := cs.Expression.(clause.Where); ok {
    										where.Build(&onStmt)
    
    										if onSQL := onStmt.SQL.String(); onSQL != "" {
    											vars := onStmt.Vars
    											for idx, v := range vars {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun May 25 07:40:40 GMT 2025
    - 10.4K bytes
    - Click Count (3)
  7. errors.go

    	ErrInvalidTransaction = errors.New("invalid transaction")
    	// ErrNotImplemented not implemented
    	ErrNotImplemented = errors.New("not implemented")
    	// ErrMissingWhereClause missing where clause
    	ErrMissingWhereClause = errors.New("WHERE conditions required")
    	// ErrUnsupportedRelation unsupported relations
    	ErrUnsupportedRelation = errors.New("unsupported relations")
    	// ErrPrimaryKeyRequired primary keys required
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy

            def newSnapshot = snapshot(version, referenceBuildTime + buildTime)
            expect:
            ******@****.***ReleasedVersions(newSnapshot, versions) == releasedVersions(newSnapshot, rc, [])
    
            where:
            version | buildTime
            '4.3'   | 1
            '4.4'   | -1
            '4.4'   | 1
        }
    
        def "older snapshots are not stored"() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 5.4K bytes
    - Click Count (0)
  9. tests/hooks_test.go

    		t.Fatalf("After delete callbacks should be invoked successfully, %v", p.GetCallTimes())
    	}
    
    	if DB.Where("Code = ?", "unique_code").First(&p).Error == nil {
    		t.Fatalf("Can't find a deleted record")
    	}
    
    	beforeCallTimes := p.AfterFindCallTimes
    	if DB.Where("Code = ?", "unique_code").Find(&p).Error != nil {
    		t.Fatalf("Find don't raise error when record not found")
    	}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Jun 17 03:59:06 GMT 2024
    - 16.7K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

                          'incubating': incubatingInterface]
        }
    
        def "#member change should not be reported"() {
            expect:
            noViolation(rule)
    
            where:
            member << [Mock(JApiMethod), Mock(JApiField), Mock(JApiImplementedInterface), Mock(JApiConstructor)]
        }
    
        def "nothing should be reported if no changes"() {
            expect:
            noViolation(rule)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top