Skip to content

Commit 27e7867

Browse files
committed
✏️ add dialects link
1 parent 7959fab commit 27e7867

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tutorial/entari.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,12 +966,14 @@ basic:
966966
log_ignores: ["aiosqlite.core"] # 忽略 aiosqlite 的 DEBUG 日志
967967
plugins:
968968
::database:
969-
type: sqlite # 数据库类型, 可选值有 sqlite, mysql, postgresql 等
969+
type: sqlite # 数据库类型, 可选值有 sqlite, mysql, postgresql, oracle
970970
name: my_database.db # 数据库名称或文件目录
971971
driver: aiosqlite # 数据库驱动, 根据数据库类型选择
972972
...
973973
```
974974

975+
`type` 与 `driver` 的支持列表详见 [Dialects](https://docs.sqlalchemy.org/en/21/dialects/#included-dialects)。
976+
975977
其余的配置项包括:
976978
- `host`: 数据库主机地址 (仅在使用 MySQL/PostgreSQL 等远程数据库时需要)
977979
- `port`: 数据库端口号 (仅在使用 MySQL/PostgreSQL 等远程数据库时需要)

0 commit comments

Comments
 (0)