{"id":28547799,"url":"https://github.com/ydb-platform/dbt-ydb","last_synced_at":"2026-04-01T17:43:19.723Z","repository":{"id":290380503,"uuid":"970003532","full_name":"ydb-platform/dbt-ydb","owner":"ydb-platform","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-09T15:39:51.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-08T05:41:16.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ydb-platform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-21T09:48:56.000Z","updated_at":"2025-06-09T15:39:54.000Z","dependencies_parsed_at":"2025-04-28T14:46:51.349Z","dependency_job_id":"29b15752-63ed-4eeb-a7de-bc6af37ea2cd","html_url":"https://github.com/ydb-platform/dbt-ydb","commit_stats":null,"previous_names":["ydb-platform/dbt-ydb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ydb-platform/dbt-ydb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fdbt-ydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fdbt-ydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fdbt-ydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fdbt-ydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydb-platform","download_url":"https://codeload.github.com/ydb-platform/dbt-ydb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fdbt-ydb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266221359,"owners_count":23894966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T01:07:48.240Z","updated_at":"2026-03-08T17:32:55.140Z","avatar_url":"https://github.com/ydb-platform.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/dbt-labs/dbt/ec7dee39f793aa4f7dd3dae37282cc87664813e4/etc/dbt-logo-full.svg\" alt=\"dbt logo\" width=\"500\"/\u003e\n\u003c/p\u003e\n\n# dbt-ydb\n\n**dbt-ydb** is a plugin for [dbt](https://www.getdbt.com/) that provides support for working with [YDB](https://ydb.tech). **dbt-ydb** adapter is in preview stage and does not currently support all dbt features. The sections below list the supported features and known limitations.\n\n## Installation\n\nTo install plugin, execute the following command:\n\n```bash\npip install dbt-ydb\n```\n\n## Supported features\n\n- [x] Table materialization\n- [x] View materialization\n- [x] Seeds\n- [x] Docs generate\n- [x] Tests\n- [x] Incremental materializations (`merge` strategy only)\n- [x] Snapshots\n\n## Limitations\n\n* `YDB` does not support CTE\n* `YDB` requires a primary key to be specified for its tables. See the configuration section for instructions on how to set it.\n* `source()` macro requires you to specify a `schema`. Use `/` if your source is in root folder.\n\n## Usage\n\n### Profile Configuration\n\nTo configure YDB connection, fill `profile.yml` file as below:\n\n```\nprofile_name:\n  target: dev\n  outputs:\n    dev:\n      type: ydb\n      host: [localhost] # YDB host\n      port: [2136] # YDB port\n      database: [/local] # YDB database\n      schema: [\u003cempty string\u003e] # Optional subfolder for DBT models\n      secure: [False] # If enabled, grpcs protocol will be used\n      root_certificates_path: [\u003cempty string\u003e] # Optional path to root certificates file\n\n      # Static Credentials\n      username: [\u003cempty string\u003e]\n      password: [\u003cempty string\u003e]\n\n      # Access Token Credentials\n      token: [\u003cempty string\u003e]\n\n      # Service Account Credentials\n      service_account_credentials_file: [\u003cempty string\u003e]\n```\n\n### Model Configuration\n\n#### View\n\n| Option | Description | Required | Default |\n| ------ | ----------- | -------- | ------- |\n\n#### Table\n\n| Option | Description | Required | Default |\n| ------ | ----------- | -------- | ------- |\n| `primary_key` | Primary key expression to use during table creation | `yes` | |\n| `store_type` | Type of table. Available options are `row` and `column` | `no` | `row` |\n| `auto_partitioning_by_size` | Enable automatic partitioning by size. Available options are `ENABLED` and `DISABLED` | `no` | |\n| `auto_partitioning_partition_size_mb` | Partition size in megabytes for automatic partitioning | `no` | |\n| `ttl` | Time-to-live (TTL) expression for automatic data expiration | `no` | |\n\n#### Incremental\n\n| Option | Description | Required | Default |\n| ------ | ----------- | -------- | ------- |\n| `incremental_strategy` | Strategy of incremental materialization. Current adapter supports only `merge` strategy, which will use `YDB`'s `UPSERT` operation. | `no` | `default` |\n| `primary_key` | Primary key expression to use during table creation | `yes` | |\n| `store_type` | Type of table. Available options are `row` and `column` | `no` | `row` |\n| `auto_partitioning_by_size` | Enable automatic partitioning by size. Available options are `ENABLED` and `DISABLED` | `no` | |\n| `auto_partitioning_partition_size_mb` | Partition size in megabytes for automatic partitioning | `no` | |\n| `ttl` | Time-to-live (TTL) expression for automatic data expiration | `no` | |\n\n##### Example table configuration\n\n```sql\n{{ config(\n    primary_key='id, created_at',\n    store_type='row',\n    auto_partitioning_by_size='ENABLED',\n    auto_partitioning_partition_size_mb=256,\n    ttl='Interval(\"P30D\") on created_at'\n) }}\n\nselect\n    id,\n    name,\n    created_at\nfrom {{ ref('source_table') }}\n```\n\n#### Seed\n\n| Option | Description | Required | Default |\n| ------ | ----------- | -------- | ------- |\n| `primary_key` | Primary key expression to use during table creation | `no` | The first column of CSV will be used as default. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fdbt-ydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydb-platform%2Fdbt-ydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fdbt-ydb/lists"}