The dbt-artifacts
utility is a tool for processing dbt artifacts, such as to generate model lineage in diagram-as-code files.
EDK Based Plugin
WARNING: This extension is currently in beta - if you run into any problems, join the Matatika Slack community and ask for help in the
#troubleshooting
channel.
Getting Started
Prerequisites
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration
-
Add the dbt-artifacts utility to your
project using
:meltano add
-
Configure the dbt-artifacts
settings using
:meltano config
meltano add utility dbt-artifacts
meltano config dbt-artifacts set --interactive
Next steps
If you run into any issues, learn how to get help.
Capabilities
This plugin currently has no capabilities defined. If you know the capabilities required by this plugin, please contribute!Settings
The
dbt-artifacts
settings that are known to Meltano are documented below. To quickly
find the setting you're looking for, click on any setting name from the list:
You can also list these settings using
with the meltano config
list
subcommand:
meltano config dbt-artifacts list
You can
override these settings or specify additional ones
in your meltano.yml
by adding the settings
key.
Please consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.
Output directory (output_dir)
-
Environment variable:
DBT_ARTIFACTS_OUTPUT_DIR
-
Default Value:
output
Output directory for processed artifacts.
Configure this setting directly using the following Meltano command:
meltano config dbt-artifacts set output_dir [value]
Resource types (resource_types)
-
Environment variable:
DBT_ARTIFACTS_RESOURCE_TYPES
-
Default Value:
["all"]
The dbt resource types to process (source
, model
, snapshot
, test
, or all
).
Configure this setting directly using the following Meltano command:
meltano config dbt-artifacts set resource_types [value]
Source directory (source_dir)
-
Environment variable:
DBT_ARTIFACTS_SOURCE_DIR
-
Default Value:
.meltano/transformers/dbt/target
Source directory for the dbt artifact files.
Configure this setting directly using the following Meltano command:
meltano config dbt-artifacts set source_dir [value]
Commands
The dbt-artifacts utility supports the following commands that can be used withmeltano invoke
:convert-matatika
-
Equivalent to:
convert --format matatika
Convert artifacts to Matatika datasets.
meltano invoke dbt-artifacts:convert-matatika [args...]
convert-mermaid
-
Equivalent to:
convert --format mermaid
Convert artifacts to Mermaid entity-relationship diagrams.
meltano invoke dbt-artifacts:convert-mermaid [args...]
For help, try meltano invoke dbt-artifacts --help
(or --help
on any subcommand).
Something missing?
This page is generated from a YAML file that you can contribute changes to.
Edit it on GitHub!Looking for help?
#plugins-general
channel.