Skip to main content

配置文件如何生效

程序 不会自动读取当前目录下的 config.toml。只有传入 --config /path/to/file.toml 时才会读取并 在默认值上合并覆盖 cargo run 时建议使用 -- 分隔:

常用环境变量

标准(无 PAA_ 前缀)

PAA_* 业务覆盖

前缀用于避免与系统环境变量冲突。生效顺序:代码默认 → --config TOML → PAA_*(若设置);单次 analyze / HTTP query 仍可覆盖部分开关(如 with_subgraph)。 示例(完整列表见仓库 README):

TOML 主要块

模板文件:config.example.toml、Docker 用 config.docker.example.toml

与 HTTP / CLI 对齐的当次开关

在 TOML 默认值之上,单次分析可通过 CLI 或 query 调整,例如:
  • with_subgraph / no_subgraph
  • with_reconciliation / no_reconciliation
  • with_canonical / no_canonical
  • no_cachesubgraph_cap_rowsno_persist_raw
详见 API 参考 — 分析钱包 与仓库 README「功能开关与覆盖」一节。