- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for try (0.17 sec)
-
docs/zh/docs/tutorial/sql-databases.md
``` === "Python 3.8+" ```Python hl_lines="15-20" {!> ../../../docs_src/sql_databases/sql_app/main.py!} ``` !!! info 我们将`SessionLocal()`请求的创建和处理放在一个`try`块中。 然后我们在finally块中关闭它。 通过这种方式,我们确保数据库会话在请求后始终关闭。即使在处理请求时出现异常。
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
``` === "🐍 3️⃣.9️⃣ & 🔛" ```Python hl_lines="13-18" {!> ../../../docs_src/sql_databases/sql_app_py39/main.py!} ``` !!! info 👥 🚮 🏗 `SessionLocal()` & 🚚 📨 `try` 🍫. & ⤴️ 👥 🔐 ⚫️ `finally` 🍫. 👉 🌌 👥 ⚒ 💭 💽 🎉 🕧 📪 ⏮️ 📨. 🚥 📤 ⚠ ⏪ 🏭 📨.
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/en/docs/tutorial/sql-databases.md
It could have a value like `"Arquilian"`. And the ORM will do all the work to get the information from the corresponding table *owners* when you try to access it from your pet object. Common ORMs are for example: Django-ORM (part of the Django framework), SQLAlchemy ORM (part of SQLAlchemy, independent of framework) and Peewee (independent of framework), among others.
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)