YDB setup
Overview of dbt-ydb
- Maintained by: YDB Team
 - Authors: YDB Team
 - GitHub repo: ydb-platform/dbt-ydb
 - PyPI package: 
dbt-ydb - Slack channel: n/a
 - Supported dbt Core version: v1.8.0 and newer
 - dbt support: Not Supported
 - Minimum data platform version: n/a
 
Installing dbt-ydb
pip is the easiest way to install the adapter:
python -m pip install dbt-ydb
Installing dbt-ydb will also install dbt-core and any other dependencies.
Configuring dbt-ydb
For YDB-specifc configuration please refer to YDB Configuration
For further info, refer to the GitHub repository: ydb-platform/dbt-ydb
Connecting to YDB
To connect to YDB from dbt, you'll need to add a profile to your profiles.yml file. A YDB profile conforms to the following syntax:
profiles.yml
profile-name:
  target: dev
  outputs:
    dev:
      type: ydb
      host: localhost
      port: 2136
      database: /local
      schema: empty_string
      secure: False
      root_certificates_path: empty_string
      # Static credentials
      username: empty_string
      password: empty_string
      # Access token credentials
      token: empty_string
      # Service account credentials
      service_account_credentials_file: empty_string
All configurations
| Config | Required? | Default | Description | 
|---|---|---|---|
| host | Yes | YDB host | |
| port | Yes | YDB port | |
| database | Yes | YDB database | |
| schema | No | empty_string | Optional subfolder for dbt models. Use empty string or / to use root folder | 
| secure | No | False | If enabled, grpcs protocol will be used | 
| root_certificates_path | No | empty_string | Optional path to root certificates file | 
| username | No | empty_string | YDB username to use static Ccredentials | 
| password | No | empty_string | YDB password to use static credentials | 
| token | No | empty_string | YDB token to use Access Token credentials | 
| service_account_credentials_file | No | empty_string | Path to service account credentials file to use service account credentials | 
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0