Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,394 for where (0.14 sec)

  1. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

        Type t = aTypeVariable();
        assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t));
      }
    
      public <T> void testWhere_indirectMapping() {
        Type t1 = new TypeCapture<T>() {}.capture();
        Type t2 = aTypeVariable();
        assertEquals(
            String.class, new TypeResolver().where(t1, t2).where(t2, String.class).resolveType(t1));
      }
    
      public void testWhere_typeVariableSelfMapping() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  2. tests/scopes_test.go

    				return tx.Scopes(
    					func(d *gorm.DB) *gorm.DB { return d.Where("a = 1") },
    					func(d *gorm.DB) *gorm.DB {
    						return d.Where(DB.Or("b = 2").Or("c = 3"))
    					},
    				).Find(&Language{})
    			},
    			expected: `SELECT * FROM "languages" WHERE a = 1 AND (b = 2 OR c = 3)`,
    		}, {
    			name: "depth_1_pre_cond",
    			queryFn: func(tx *gorm.DB) *gorm.DB {
    				return tx.Where("z = 0").Scopes(
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. soft_delete.go

    		if c, ok := stmt.Clauses["WHERE"]; ok {
    			if where, ok := c.Expression.(clause.Where); ok && len(where.Exprs) >= 1 {
    				for _, expr := range where.Exprs {
    					if orCond, ok := expr.(clause.OrConditions); ok && len(orCond.Exprs) == 1 {
    						where.Exprs = []clause.Expression{clause.And(where.Exprs...)}
    						c.Expression = where
    						stmt.Clauses["WHERE"] = c
    						break
    					}
    				}
    			}
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. tests/table_test.go

    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

        Type t = aTypeVariable();
        assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t));
      }
    
      public <T> void testWhere_indirectMapping() {
        Type t1 = new TypeCapture<T>() {}.capture();
        Type t2 = aTypeVariable();
        assertEquals(
            String.class, new TypeResolver().where(t1, t2).where(t2, String.class).resolveType(t1));
      }
    
      public void testWhere_typeVariableSelfMapping() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeParameter.java

    import javax.annotation.CheckForNull;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * <pre>{@code
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }</pre>
     *
     * @author Ben Yu
     * @since 12.0
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. internal/s3select/select_test.go

    			query: `SELECT id from s3object s WHERE s.id <= 9223372036854775807`,
    			wantResult: `{"id":0}
    {"id":1}
    {"id":2}
    {"id":3}`,
    		},
    		{
    			name:  "bignum-2",
    			query: `SELECT id from s3object s WHERE s.id >= -9223372036854775808`,
    			wantResult: `{"id":0}
    {"id":1}
    {"id":2}
    {"id":3}`,
    		},
    		{
    			name:       "donatello-3",
    			query:      `SELECT * from s3object s WHERE 'value' IN s.synonyms[*]`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/conditional-openapi.md

    * Implement and use well-known cryptographic tools, like Passlib and JWT tokens, etc.
    * Add more granular permission controls with OAuth2 scopes where needed.
    * ...etc.
    
    Nevertheless, you might have a very specific use case where you really need to disable the API docs for some environment (e.g. for production) or depending on configurations from environment variables.
    
    ## Conditional OpenAPI from settings and env vars
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  9. chainable_api.go

    		tx.Statement.Omits = columns
    	}
    	return
    }
    
    // Where add conditions
    //
    // See the [docs] for details on the various formats that where clauses can take. By default, where clauses chain with AND.
    //
    //	// Find the first user with name jinzhu
    //	db.Where("name = ?", "jinzhu").First(&user)
    //	// Find the first user with name jinzhu and age 20
    //	db.Where(&User{Name: "jinzhu", Age: 20}).First(&user)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  10. tests/upsert_test.go

    	var user1, user2, user3, user4, user5, user6 User
    	if err := DB.Where(&User{Name: "find or init", Age: 33}).FirstOrInit(&user1).Error; err != nil {
    		t.Errorf("no error should happen when FirstOrInit, but got %v", err)
    	}
    
    	if user1.Name != "find or init" || user1.ID != 0 || user1.Age != 33 {
    		t.Errorf("user should be initialized with search value")
    	}
    
    	DB.Where(User{Name: "find or init", Age: 33}).FirstOrInit(&user2)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
Back to top