Files
playbook/skills/tsl-api-reference/references/codegen/builtin/resource/database.md
T
csh 1f19954dd7 ♻️ refactor(tsl-api-reference): reorganize function reference pages
Move runtime and document pages into their correct scope, remove obsolete pending entries, and regenerate the function index.\nUpdate agent test guidance and API skill routing to match the new reference layout.
2026-07-20 09:08:38 +08:00

28 lines
613 B
Markdown

# Builtin - 资源 / 数据库
## `sqlCommnit(db_alias)`
提交事务。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ------------ |
| `db_alias` | string | 数据库别名。 |
返回:any
## `sqlErrorMsg()`
返回最近出错的SQL语法执行的数据库出错信息。
返回:string
## `sqlCloseConn(db_alias)`
主动关闭指定别名的数据库链接或者关闭所有数据库链接。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ---------------------- |
| `db_alias` | string | 数据库别名,可选参数。 |
返回:integer