Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 200 for having (0.12 sec)

  1. clause/group_by_test.go

    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}},
    			"SELECT * FROM `users` GROUP BY `role` HAVING `role` = ?",
    			[]interface{}{"admin"},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.GroupBy{
    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}, clause.GroupBy{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. clause/group_by.go

    		builder.WriteString(" HAVING ")
    		Where{Exprs: groupBy.Having}.Build(builder)
    	}
    }
    
    // MergeClause merge group by clause
    func (groupBy GroupBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(GroupBy); ok {
    		copiedColumns := make([]Column, len(v.Columns))
    		copy(copiedColumns, v.Columns)
    		groupBy.Columns = append(copiedColumns, groupBy.Columns...)
    
    		copiedHaving := make([]Expression, len(v.Having))
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Mar 30 10:28:09 UTC 2021
    - 1K bytes
    - Viewed (0)
  3. tests/group_by_test.go

    		t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total)
    	}
    
    	if err := DB.Model(&User{}).Select("name, sum(age) as total").Where("name LIKE ?", "groupby%").Group("name").Having("name = ?", "groupby1").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby1" || total != 660 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. docs/en/docs/reference/status.md

    For example:
    
    * 200: `status.HTTP_200_OK`
    * 403: `status.HTTP_403_FORBIDDEN`
    * etc.
    
    It can be convenient to quickly access HTTP (and WebSocket) status codes in your app, using autocompletion for the name without having to remember the integer status codes by memory.
    
    Read more about it in the [FastAPI docs about Response Status Code](https://fastapi.tiangolo.com/tutorial/response-status-code/).
    
    ## Example
    
    ```python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 871 bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
       */
      static BigInteger randomNonNegativeBigInteger(int numBits) {
        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. docs/en/docs/benchmarks.md

        * If you are comparing Uvicorn, compare it against Daphne, Hypercorn, uWSGI, etc. Application servers.
    * **Starlette**:
        * Will have the next best performance, after Uvicorn. In fact, Starlette uses Uvicorn to run. So, it probably can only get "slower" than Uvicorn by having to execute more code.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. chainable_api.go

    	})
    	return
    }
    
    // Having specify HAVING conditions for GROUP BY
    //
    //	// Select the sum age of users with name jinzhu
    //	db.Model(&User{}).Select("name, sum(age) as total").Group("name").Having("name = ?", "jinzhu").Find(&result)
    func (db *DB) Having(query interface{}, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.AddClause(clause.GroupBy{
    		Having: tx.Statement.BuildCondition(query, args...),
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 19 01:49:06 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ArchetypeGraph.java

       *       expression involving {@code view} will throw)
       *   <li>{@code hashCode()} does not throw
       *   <li>if {@code node} is re-added to the graph after having been removed, {@code view}'s
       *       behavior is undefined
       * </ul>
       *
       * @throws IllegalArgumentException if {@code node} is not an element of this graph
       */
      Set<N> adjacentNodes(N node);
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 11 17:11:16 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. native-image-tests/src/test/kotlin/okhttp3/nativeimage/WithArgumentSourceTest.kt

    import org.junit.jupiter.params.provider.ArgumentsProvider
    import org.junit.jupiter.params.provider.ArgumentsSource
    import org.junit.jupiter.params.support.ParameterDeclarations
    
    /**
     * This enforces us having the params classes on the classpath to workaround
     * https://github.com/graalvm/native-build-tools/issues/745
     */
    class WithArgumentSourceTest {
      @ParameterizedTest
      @ArgumentsSource(FakeArgumentsProvider::class)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 22 20:31:49 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Shortcut { #shortcut }
    
    But you see that we are having some code repetition here, writing `CommonQueryParams` twice:
    
    //// tab | Python 3.9+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    ```
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top