- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for get_a_b (0.45 sec)
-
docs/em/docs/how-to/sql-databases-peewee.md
๐, ๐ฅ ๐ช โ โ1๏ธโฃ `async` ๐ `reset_db_state()` ๐ โ๏ธ ๐ง-๐ `get_db()`. โซ๏ธ ๐ โ ๐ฒ ๐ ๐ข (โฎ๏ธ ๐ข `dict`) ๐ ๐ โ๏ธ ๐ฝ ๐ต๐ธ ๐ ๐จ. & โคด๏ธ ๐ `get_db()` ๐ ๐ช โซ๏ธ ๐ฝ ๐ต๐ธ (๐, ๐ต, โ๏ธ). ```Python hl_lines="18-20" {!../../../docs_src/sql_databases_peewee/sql_app/main.py!} ``` **โญ ๐จ**, ๐ฅ ๐ โฒ ๐ ๐ ๐ข ๐ `async` ๐ `reset_db_state()` & โคด๏ธ โ ๐ ๐ `get_db()` ๐, ๐ ๐ ๐จ ๐ โ๏ธ ๐ฎ ๐ ๐ฝ ๐ต๐ธ (๐, ๐ต, โ๏ธ). !!! tip
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 19.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py
import pytest from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="app") def get_app(): from docs_src.request_files.tutorial002_an_py39 import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client @needs_py39
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
import pytest from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture(name="app") def get_app(): from docs_src.request_forms_and_files.tutorial001 import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client def test_post_form_no_body(client: TestClient):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.8K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py
import pytest from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="app") def get_app(): from docs_src.request_forms_and_files.tutorial001_an_py39 import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client @needs_py39
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial002_py39.py
import pytest from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="app") def get_app(): from docs_src.request_files.tutorial002_py39 import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client file_required = { "detail": [
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py
import pytest from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture(name="app") def get_app(): from docs_src.request_forms_and_files.tutorial001_an import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client def test_post_form_no_body(client: TestClient):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
``` โคด๏ธ ๐ฅ ๐ ๐ฃ *โก ๐ ๏ธ ๐ข* & ๐ ๐ต `async def`, โฎ๏ธ ๐ `def`,: ```Python hl_lines="2" @app.get("/users/{user_id}", response_model=schemas.User) def read_user(user_id: int, db: Session = Depends(get_db)): db_user = crud.get_user(db, user_id=user_id) ... ``` !!! info ๐ฅ ๐ ๐ช ๐ ๐ ๐ ๐ฝ ๐, ๐ [๐ ๐ (๐) ๐ฝ](../advanced/async-sql-databases.md){.internal-link target=_blank}.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 25.2K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 29.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
``` ็ถๅๆไปฌๅบ่ฏฅๅฃฐๆ*่ทฏๅพๆไฝๅฝๆฐ*ๅไธๅธฆ ็ไพ่ตๅ ณ็ณป`async def`๏ผๅช้ไฝฟ็จๆฎ้็`def`๏ผๅฆไธ๏ผ ```Python hl_lines="2" @app.get("/users/{user_id}", response_model=schemas.User) def read_user(user_id: int, db: Session = Depends(get_db)): db_user = crud.get_user(db, user_id=user_id) ... ``` !!! info ๅฆๆๆจ้่ฆๅผๆญฅ่ฟๆฅๅฐๅ ณ็ณปๆฐๆฎๅบ๏ผ่ฏทๅ้ [Async SQL (Relational) Databases](https://fastapi.tiangolo.com/zh/advanced/async-sql-databases/)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue May 07 21:00:22 UTC 2024 - 27.3K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* Make sure the `*` in short features in the docs is consistent (after `.`) in all languages. PR [#1424](https://github.com/tiangolo/fastapi/pull/1424). * Update order of execution for `get_db` in SQLAlchemy tutorial. PR [#1293](https://github.com/tiangolo/fastapi/pull/1293) by [@bcb](https://github.com/bcb). * Fix typos in Async docs. PR [#1423](https://github.com/tiangolo/fastapi/pull/1423). ## 0.54.2
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 14 15:07:37 UTC 2024 - 395.4K bytes - Viewed (0)