Decodable setup
Some core functionality may be limited. If you're interested in contributing, see the source code for the repository listed below.
- Maintained by: Decodable
- Authors: Decodable Team
- GitHub repo: decodableco/dbt-decodable
- PyPI package:
dbt-decodable - Slack channel: #general
- Supported dbt Core version: 1.3.1 and newer
- dbt support: Not supported
- Minimum data platform version: n/a
Installing dbt-decodable
Use pip to install the adapter. Before 1.8, installing the adapter would automatically install dbt-core and any additional dependencies. Beginning in 1.8, installing an adapter does not automatically install dbt-core. This is because adapters and dbt Core versions have been decoupled from each other so we no longer want to overwrite existing dbt-core installations.
Use the following command for installation:
python -m pip install dbt-core dbt-decodable
Configuring dbt-decodable
For Decodable-specific configuration, please refer to Decodable configs.
Connecting to Decodable with dbt-decodable
Do the following steps to connect to Decodable with dbt.
Prerequisites
In order to properly connect to Decodable, you must have the Decodable CLI installed and have used it to login to Decodable at least once. See Install the Decodable CLI for more information.
Steps
To connect to Decodable with dbt, you'll need to add a Decodable profile to your profiles.yml file. A Decodable profile has the following fields.
dbt-decodable:
target: dev
outputs:
dev:
type: decodable
database: None
schema: None
account_name: [your account]
profile_name: [name of the profile]
materialize_tests: [true | false]
timeout: [ms]
preview_start: [earliest | latest]
local_namespace: [namespace prefix]
Description of Profile Fields
| Loading table... |
Supported features
| Loading table... |
Additional operations
dbt-decodable provides a set of commands for managing the project’s resources on Decodable. Those commands can be run using dbt run-operation {name} --args {args}.
For example, the following command runs the delete_streams operation
dbt run-operation delete_streams --args '{streams: [stream1, stream2], skip_errors: True}'
- pipelines: An optional list of pipeline names to deactivate. Defaults to none.
Deactivate all pipelines for resources defined within the project. If the pipelines argument is provided, then only the specified pipelines are deactivated.
delete_pipelines(pipelines)
- pipelines: An optional list of pipeline names to delete. Defaults to none.
Delete all pipelines for resources defined within the project. If the pipelines argument is provided, then only the specified pipelines are deleted.
delete_streams(streams, skip_errors)
- streams: An optional list of stream names to delete. Defaults to none.
- skip_errors: Specify whether to treat errors as warnings. When set to true, any stream deletion failures are reported as warnings. When set to false, the operation stops when a stream cannot be deleted. Defaults to true.
Delete all streams for resources defined within the project. If a pipeline is associated with a stream, then neither the pipeline nor stream are deleted. See the cleanup operation for a complete removal of stream/pipeline pairs.
- list: An optional list of resource entity names to delete. Defaults to none.
- models: Specify whether to include models during cleanup. Defaults to true.
- seeds: Specify whether to include seeds during cleanup. Defaults to true.
- tests: Specify whether to include tests during cleanup. Defaults to true.
Delete all Decodable entities resulting from the materialization of the project’s resources, i.e. connections, streams, and pipelines.
If the list argument is provided, then only the specified resource entities are deleted.
If the models, seeds, or test arguments are provided, then those resource types are also included in the cleanup. Tests that have not been materialized are not included in the cleanup.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.