For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/db/functions/isDbTxRecording.md.
  • 简体中文
  • Function: isDbTxRecording()

    function isDbTxRecording(): boolean;

    Defined in: sapi/db/client.ts:400

    供 service 客户端检测「当前激活模块」是否处于 db.tx 中。 作用域路径应改用配对 DbClient.isTxRecording(),避免跨模块误伤。

    Returns

    boolean