Skip to content

Profiles.yml

如果您使用的是dbt CLI,则需要设置一个profiles.yml文件。

您可以在连接到您的数据仓库的文章中了解更多信息.

[config](global-configs):
  [send_anonymous_usage_stats](global-configs#send-anonymous-usage-stats): <true | false>
  [use_colors](global-configs#use-colors): <true | false>
  [partial_parse](global-configs#partial-parsing): <true | false>
  [printer_width](global-configs#printer-width): <integer>
  [write_json](global-configs#writing-json-artifacts): <true | false>
  [warn_error](global-configs#warnings-as-errors): <true | false>
  [warn_error_options](global-configs#warnings-as-errors): <include: all | include: [<error-name>] | include: all, exclude: [<error-name>]>
  [log_format](global-configs#log-formatting): <text | json | default>
  [debug](global-configs#debug-level-logging): <true | false>
  [version_check](global-configs#checking-version-compatibility): <true | false>
  [fail_fast](global-configs#failing-fast): <true | false>
  [use_experimental_parser](global-configs#experimental-parser): <true | false>
  [static_parser](global-configs#static-parser): <true | false>

<profile-name>:
  target: <target-name> # this is the default target
  outputs:
    <target-name>:
      type: <bigquery | postgres | redshift | snowflake | other>
      schema: <schema_identifier>
      threads: <natural_number>

      ### database-specific connection details
      ...

    <target-name>: # additional targets
      ...

<profile-name>: # additional profiles
  ...

用户配置

您可以为使用本地计算机运行的所有项目设置全局配置的默认值。有关详细信息,请参阅全局配置上的文档。