Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for SELECT (0.18 sec)

  1. docs/en/docs/tutorial/debugging.md

    * "Add configuration...".
    * Select "Python"
    * Run the debugger with the option "`Python: Current File (Integrated Terminal)`".
    
    It will then start the server with your **FastAPI** code, stop at your breakpoints, etc.
    
    Here's how it might look:
    
    <img src="/img/tutorial/debugging/image01.png">
    
    ---
    
    If you use Pycharm, you can:
    
    * Open the "Run" menu.
    * Select the option "Debug...".
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jun 22 17:04:16 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  2. docs_src/async_sql_databases/tutorial001.py

        await database.connect()
    
    
    @app.on_event("shutdown")
    async def shutdown():
        await database.disconnect()
    
    
    @app.get("/notes/", response_model=List[Note])
    async def read_notes():
        query = notes.select()
        return await database.fetch_all(query)
    
    
    @app.post("/notes/", response_model=Note)
    async def create_note(note: NoteIn):
        query = notes.insert().values(text=note.text, completed=note.completed)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/oauth2-scopes.md

    <img src="/img/tutorial/security/image11.png">
    
    If you don't select any scope, you will be "authenticated", but when you try to access `/users/me/` or `/users/me/items/` you will get an error saying that you don't have enough permissions. You will still be able to access `/status/`.
    
    And if you select the scope `me` but not the scope `items`, you will be able to access `/users/me/` but not `/users/me/items/`.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/sql-databases-peewee.md

    ```
    
    ### About `def` vs `async def`
    
    The same as with SQLAlchemy, we are not doing something like:
    
    ```Python
    user = await models.User.select().first()
    ```
    
    ...but instead we are using:
    
    ```Python
    user = models.User.select().first()
    ```
    
    So, again, we should declare the *path operation functions* and the dependency without `async def`, just with a normal `def`, as:
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. docs/en/docs/help-fastapi.md

    You can "watch" FastAPI in GitHub (clicking the "watch" button at the top right): <a href="https://github.com/tiangolo/fastapi" class="external-link" target="_blank">https://github.com/tiangolo/fastapi</a>. 👀
    
    There you can select "Releases only".
    
    By doing it, you will receive notifications (in your email) whenever there's a new release (a new version) of **FastAPI** with bug fixes and new features.
    
    ## Connect with the author
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  6. docs/en/mkdocs.yml

      features:
      - search.suggest
      - search.highlight
      - content.tabs.link
      - navigation.indexes
      - content.tooltips
      - navigation.path
      - content.code.annotate
      - content.code.copy
      - content.code.select
      - navigation.tabs
      icon:
        repo: fontawesome/brands/github-alt
      logo: img/icon-white.svg
      favicon: img/favicon.png
      language: en
    repo_name: tiangolo/fastapi
    repo_url: https://github.com/tiangolo/fastapi
    Others
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 16:48:56 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. docs_src/sql_databases_peewee/sql_app/crud.py

        return list(models.User.select().offset(skip).limit(limit))
    
    
    def create_user(user: schemas.UserCreate):
        fake_hashed_password = user.password + "notreallyhashed"
        db_user = models.User(email=user.email, hashed_password=fake_hashed_password)
        db_user.save()
        return db_user
    
    
    def get_items(skip: int = 0, limit: int = 100):
        return list(models.Item.select().offset(skip).limit(limit))
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 843 bytes
    - Viewed (0)
  8. docs/en/docs/advanced/behind-a-proxy.md

    <img src="/img/tutorial/behind-a-proxy/image03.png">
    
    !!! tip
        The docs UI will interact with the server that you select.
    
    ### Disable automatic server from `root_path`
    
    If you don't want **FastAPI** to include an automatic server using the `root_path`, you can use the parameter `root_path_in_servers=False`:
    
    ```Python hl_lines="9"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  9. pyproject.toml

        "tests",
        "fastapi"
    ]
    context = '${CONTEXT}'
    omit = [
        "docs_src/response_model/tutorial003_04.py",
        "docs_src/response_model/tutorial003_04_py310.py",
    ]
    
    [tool.ruff.lint]
    select = [
        "E",  # pycodestyle errors
        "W",  # pycodestyle warnings
        "F",  # pyflakes
        "I",  # isort
        "B",  # flake8-bugbear
        "C4",  # flake8-comprehensions
        "UP",  # pyupgrade
    ]
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:28:39 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. docs/em/docs/how-to/sql-databases-peewee.md

    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    ### 🔃 `def` 🆚 `async def`
    
    🎏 ⏎ī¸ 🇸🇲, đŸ‘Ĩ đŸšĢ 🔨 đŸ•ŗ 💖:
    
    ```Python
    user = await models.User.select().first()
    ```
    
    ...✋ī¸ ↩ī¸ đŸ‘Ĩ ⚙ī¸:
    
    ```Python
    user = models.User.select().first()
    ```
    
    , 🔄, đŸ‘Ĩ 🔜 đŸ“Ŗ *➡ 🛠ī¸ đŸ”ĸ* &amp; 🔗 đŸĩ `async def`, ⏎ī¸ 😐 `def`,:
    
    ```Python hl_lines="2"
    # Something goes here
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
Back to top