- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 346 for database (0.14 sec)
-
docs_src/sql_databases/sql_app/database.py
duganchen <******@****.***> 1586087589 -0700
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Apr 05 11:53:09 UTC 2020 - 461 bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/database.py
Sebastián Ramírez <******@****.***> 1585249793 +0100
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 662 bytes - Viewed (0) -
docs/en/docs/advanced/testing-database.md
. └── sql_app ├── __init__.py ├── crud.py ├── database.py ├── main.py ├── models.py ├── schemas.py └── tests ├── __init__.py └── test_sql_app.py ``` ## Create the new database session First, we create a new database session with the new database. We'll use an in-memory database that persists during the tests instead of the local file `sql_app.db`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.5K bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py310/database.py
Sebastián Ramírez <******@****.***> 1641564691 +0100
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 461 bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py39/database.py
Sebastián Ramírez <******@****.***> 1641564691 +0100
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 461 bytes - Viewed (0) -
docs/zh/docs/advanced/testing-database.md
因此,新的文件架构如下: ``` hl_lines="9-11" . └── sql_app ├── __init__.py ├── crud.py ├── database.py ├── main.py ├── models.py ├── schemas.py └── tests ├── __init__.py └── test_sql_app.py ``` ## 创建新的数据库会话 首先,为新建数据库创建新的数据库会话。 测试时,使用 `test.db` 替代 `sql_app.db`。 但其余的会话代码基本上都是一样的,只要复制就可以了。 ```Python hl_lines="8-13"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Jan 28 18:09:26 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/em/docs/advanced/testing-database.md
## 📁 📊 👥 ✍ 🆕 📁 `sql_app/tests/test_sql_app.py`. 🆕 📁 📊 👀 💖: ``` hl_lines="9-11" . └── sql_app ├── __init__.py ├── crud.py ├── database.py ├── main.py ├── models.py ├── schemas.py └── tests ├── __init__.py └── test_sql_app.py ``` ## ✍ 🆕 💽 🎉 🥇, 👥 ✍ 🆕 💽 🎉 ⏮️ 🆕 💽. 💯 👥 🔜 ⚙️ 📁 `test.db` ↩️ `sql_app.db`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Apr 01 09:26:04 UTC 2023 - 2.6K bytes - Viewed (0) -
docs/en/docs/how-to/nosql-databases-couchbase.md
They are generally all related to the same application. The analogy in the relational database world would be a "database" (a specific database, not the database server). The analogy in **MongoDB** would be a "collection". In the code, a `Bucket` represents the main entrypoint of communication with the database. This utility function will: * Connect to a **Couchbase** cluster (that might be a single machine).
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 18 23:43:13 UTC 2024 - 6K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
```Python hl_lines="3 5 22" {!../../../docs_src/sql_databases_peewee/sql_app/database.py!} ``` !!! tip Keep in mind that if you wanted to use a different database, like PostgreSQL, you couldn't just change the string. You would need to use a different Peewee database class. #### Note The argument: ```Python check_same_thread=False ``` is equivalent to the one in the SQLAlchemy tutorial: ```Python
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Jan 16 13:23:25 UTC 2024 - 23.6K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Let's refer to the file `sql_app/database.py`. ### Import the SQLAlchemy parts ```Python hl_lines="1-3" {!../../../docs_src/sql_databases/sql_app/database.py!} ``` ### Create a database URL for SQLAlchemy ```Python hl_lines="5-6" {!../../../docs_src/sql_databases/sql_app/database.py!} ``` In this example, we are "connecting" to a SQLite database (opening a file with the SQLite database).
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 29.6K bytes - Viewed (0)