- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for 47 (0.15 sec)
-
docs/ru/docs/tutorial/schema-extra-example.md
``` === "Python 3.8+ non-Annotated" !!! tip Заметка Рекомендуется использовать версию с `Annotated`, если это возможно. ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial004.py!} ``` ### Аргумент "examples" в UI документации С аргументом `examples`, добавленным в `Body()`, страница документации `/docs` будет выглядеть так:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
而 Pydantic 也使用“模型”这个术语 来指代不同的东西,即数据验证、转换以及文档类和实例。 从`database`(来自上面的`database.py`文件)导入`Base`。 创建从它继承的类。 这些类就是 SQLAlchemy 模型。 ```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` 这个`__tablename__`属性是用来告诉 SQLAlchemy 要在数据库中为每个模型使用的数据库表的名称。 ### 创建模型属性/列 现在创建所有模型(类)属性。 这些属性中的每一个都代表其相应数据库表中的一列。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 27K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
✋️ Pydantic ⚙️ ⚖ "**🏷**" 🔗 🕳 🎏, 💽 🔬, 🛠️, & 🧾 🎓 & 👐. 🗄 `Base` ⚪️➡️ `database` (📁 `database.py` ⚪️➡️ 🔛). ✍ 🎓 👈 😖 ⚪️➡️ ⚫️. 👫 🎓 🇸🇲 🏷. ```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` `__tablename__` 🔢 💬 🇸🇲 📛 🏓 ⚙️ 💽 🔠 👫 🏷. ### ✍ 🏷 🔢/🏓 🔜 ✍ 🌐 🏷 (🎓) 🔢. 🔠 👫 🔢 🎨 🏓 🚮 🔗 💽 🏓.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/ko/docs/tutorial/schema-extra-example.md
{!> ../../../docs_src/schema_extra_example/tutorial005_py310.py!} ``` === "Python 3.8+ Annotated가 없는 경우" !!! tip "팁" 가능하다면 `Annotated`가 달린 버전을 권장합니다. ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial005.py!} ``` ### 문서 UI에서의 OpenAPI 예시 `Body()`에 추가된 `openapi_examples`를 포함한 `/docs`는 다음과 같이 보일 것입니다:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Feb 09 12:35:46 GMT 2024 - 13.6K bytes - Viewed (0) -
docs/de/docs/tutorial/schema-extra-example.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:19:53 GMT 2024 - 13.3K bytes - Viewed (0) -
docs/en/docs/tutorial/schema-extra-example.md
``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial005.py!} ``` ### OpenAPI Examples in the Docs UI With `openapi_examples` added to `Body()` the `/docs` would look like:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.8K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Import `Base` from `database` (the file `database.py` from above). Create classes that inherit from it. These classes are the SQLAlchemy models. ```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` The `__tablename__` attribute tells SQLAlchemy the name of the table to use in the database for each of these models.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0)