Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 179 for limit (0.02 sec)

  1. tests/test_tutorial/test_query_param_models/test_tutorial001.py

        response = client.get(
            "/items/",
            params={
                "limit": 10,
                "offset": 5,
                "order_by": "updated_at",
                "tags": ["tag1", "tag2"],
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "limit": 10,
            "offset": 5,
            "order_by": "updated_at",
            "tags": ["tag1", "tag2"],
        }
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. internal/store/batch_test.go

    	}
    
    	var limit uint32 = 100
    
    	batch := NewBatch[TestItem](BatchConfig[TestItem]{
    		Limit:         limit,
    		Store:         store,
    		CommitTimeout: 5 * time.Minute,
    		Log: func(ctx context.Context, err error, id string, errKind ...interface{}) {
    			t.Log(err)
    		},
    	})
    	defer batch.Close()
    
    	for i := 0; i < int(limit); i++ {
    		if err := batch.Add(testItem); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. cmd/handler-api.go

    		return 0
    	}
    	if limit >= 100*humanize.TiByte {
    		// No limit set, or unreasonably high. Ignore
    		return 0
    	}
    	return limit
    }
    
    func availableMemory() (available uint64) {
    	available = 2048 * blockSizeV2 * 2 // Default to 4 GiB when we can't find the limits.
    
    	if runtime.GOOS == "linux" {
    		// Honor cgroup limits if set.
    		limit := cgroupMemLimit()
    		if limit > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 17:07:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_param_models/test_tutorial002.py

        response = client.get(
            "/items/",
            params={
                "limit": 10,
                "offset": 5,
                "order_by": "updated_at",
                "tags": ["tag1", "tag2"],
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "limit": 10,
            "offset": 5,
            "order_by": "updated_at",
            "tags": ["tag1", "tag2"],
        }
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Splitter.java

      private final int limit;
    
      private Splitter(Strategy strategy) {
        this(strategy, false, CharMatcher.none(), Integer.MAX_VALUE);
      }
    
      private Splitter(Strategy strategy, boolean omitEmptyStrings, CharMatcher trimmer, int limit) {
        this.strategy = strategy;
        this.omitEmptyStrings = omitEmptyStrings;
        this.trimmer = trimmer;
        this.limit = limit;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/query-params.md

    El query es el conjunto de pares de key-value que van después del `?` en la URL, separados por caracteres `&`.
    
    Por ejemplo, en la URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...los parámetros de query son:
    
    * `skip`: con un valor de `0`
    * `limit`: con un valor de `10`
    
    Dado que son parte de la URL son strings "naturalmente".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/query-params.md

    ```
    
    A consulta é o conjunto de pares chave-valor que vai depois de `?` na URL, separado pelo caractere `&`.
    
    Por exemplo, na URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...os parâmetros da consulta são:
    
    * `skip`: com o valor `0`
    * `limit`: com o valor `10`
    
    Como eles são parte da URL, eles são "naturalmente" strings.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. docs_src/sql_databases/tutorial001_an.py

        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ) -> List[Hero]:
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}")
    def read_hero(hero_id: int, session: SessionDep) -> Hero:
        hero = session.get(Hero, hero_id)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/query-params.md

    🖼 🔛 👫 ✔️ 🔢 💲 `skip=0` &amp; `limit=10`.
    
    , 🔜 📛:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    🔜 🎏 🔜:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ✋️ 🚥 👆 🚶, 🖼:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    🔢 💲 👆 🔢 🔜:
    
    * `skip=20`: ↩️ 👆 ⚒ ⚫️ 📛
    * `limit=10`: ↩️ 👈 🔢 💲
    
    ## 📦 🔢
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/query-params.md

    Örneğin, aşağıdaki bağlantıda:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...sorgu parametreleri şunlardır:
    
    * `skip`: değeri `0`'dır
    * `limit`: değeri `10`'dır
    
    Parametreler bağlantının bir parçası oldukları için doğal olarak string olarak değerlendirilirler.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top