Files
playbook/docs/tsl/codegen/dotnet/runtime/db_transaction.md
T
csh b6160676b4 ♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
2026-07-07 16:36:08 +08:00

32 lines
643 B
Markdown

# 运行时 / 数据库事务
### `sqlBeginTrans(db_alias)`
开始一个数据库事务。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ------------ |
| `db_alias` | string | 数据库别名。 |
返回:int
### `sqlInTrans(db_alias)`
检查是否在一个数据库事务中。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ------------ |
| `db_alias` | string | 数据库别名。 |
返回:int
### `sqlRollback(db_alias)`
回滚事务。
| 参数 | 类型 | 说明 |
| ---------- | ------ | ------------ |
| `db_alias` | string | 数据库别名。 |
返回:int