Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 532 for LIMIT (0.02 sec)

  1. 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)
  2. tests/test_tutorial/test_dependencies/test_tutorial001_py310.py

        [
            ("/items", 200, {"q": None, "skip": 0, "limit": 100}),
            ("/items?q=foo", 200, {"q": "foo", "skip": 0, "limit": 100}),
            ("/items?q=foo&skip=5", 200, {"q": "foo", "skip": 5, "limit": 100}),
            ("/items?q=foo&skip=5&limit=30", 200, {"q": "foo", "skip": 5, "limit": 30}),
            ("/users", 200, {"q": None, "skip": 0, "limit": 100}),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/query-params.md

    🖼 🔛 👫 ✔️ 🔢 💲 `skip=0` & `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)
  4. 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)
  5. docs_src/dependencies/tutorial003_an_py310.py

        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 655 bytes
    - Viewed (0)
  6. docs_src/query_params/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    @app.get("/items/")
    async def read_item(skip: int = 0, limit: int = 10):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 250 bytes
    - Viewed (0)
  7. docs_src/query_params/tutorial006b.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_user_item(
        item_id: str, needy: str, skip: int = 0, limit: Union[int, None] = None
    ):
        item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 301 bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          input: String,
          pos: Int,
          limit: Int,
        ): Int {
          var i = pos
          while (i < limit) {
            when (input[i]) {
              '[' -> {
                while (++i < limit) {
                  if (input[i] == ']') break
                }
              }
              ':' -> return i
            }
            i++
          }
          return limit // No colon.
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/query-params.md

    Zum Beispiel sind in der URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ... die Query-Parameter:
    
    * `skip`: mit dem Wert `0`
    * `limit`: mit dem Wert `10`
    
    Da sie Teil der URL sind, sind sie „naturgemäß“ 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)
  10. docs_src/dependencies/tutorial001_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    @app.get("/items/")
    async def read_items(commons: dict = Depends(common_parameters)):
        return commons
    
    
    @app.get("/users/")
    async def read_users(commons: dict = Depends(common_parameters)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 404 bytes
    - Viewed (0)
Back to top