Skip to main content

dbt logo

Adapters

There are two major adapter types: base and sql.

base

BaseAdapter defines the base functionality an adapter is required to implement in order to function with dbt-core. There are several methods which have default implementations as well as methods that require the concrete adapter to implement them.

sql

SQLAdapter inherits from BaseAdapter, updates default implementations to work with SQL-based platforms, and defines additional required methods to support those defaults.

Components

An adapter is composed of several components.

  • connections
  • dialect
  • relation caching
  • integration with dbt-core

The first two are platform-specific and require significant implementation in a concrete adapter. The last two are largely implemented in dbt-adapters with minor adjustments in a concrete adapter.

Connections

This component is responsible for creating and managing connections to storage and compute.

Files

  • dbt/adapters/{base|sql}/connections.py

Dialect

This component is responsible for translating a request from dbt-core into a specific set of actions on the platform.

Files

  • dbt/adapters/base/column.py
  • dbt/adapters/base/query_headers.py
  • dbt/adapters/base/relation.py
  • dbt/adapters/relation_configs/*
  • dbt/adapters/clients/jinja.py
  • dbt/include/global_project/*

Relation caching

This component is responsible for managing a local cache of relations, relation metadata, and dependencies between relations.

Files

  • dbt/adapters/cache.py

Integration with dbt-core

This component is responsible for managing the interface between dbt-core and a concrete adapter.

Files

  • dbt/adapters/{base|sql}/impl.py
  • dbt/adapters/base/meta.py
  • dbt/adapters/base/plugin.py
  • dbt/adapters/capability.py
  • dbt/adapters/factory.py
  • dbt/adapters/protocol.py
  • dbt/adapters/contracts/*
  • dbt/adapters/events/*
  • dbt/adapters/exceptions/*

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dvt_adapters-0.2.56.tar.gz (706.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dvt_adapters-0.2.56-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file dvt_adapters-0.2.56.tar.gz.

File metadata

  • Download URL: dvt_adapters-0.2.56.tar.gz
  • Upload date:
  • Size: 706.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dvt_adapters-0.2.56.tar.gz
Algorithm Hash digest
SHA256 bb0e82297b9b6500038f7cc00281cec9374430e7b064b8d9923d39073394721d
MD5 89b73e550848d038dc7c81e0be25ca41
BLAKE2b-256 2bab9dd6a438599984ba3639aec5309f258f77b59c0b2a72dcfe5be06eb708d1

See more details on using hashes here.

File details

Details for the file dvt_adapters-0.2.56-py3-none-any.whl.

File metadata

  • Download URL: dvt_adapters-0.2.56-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dvt_adapters-0.2.56-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3ddcc7bbcd9997919d5a9c45c10e1c8dc598e3bafbf84236317bf90b0f96a9
MD5 917dd8a88120f10c60080dc8e35d6d56
BLAKE2b-256 66c6e50b052961b8934d5faae05bd3c67299fee6e6e048edd1f20b81cf5ccc3b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.58

2 files

0.2.57

2 files

This release

0.2.56 This release

2 files

0.2.55

2 files

0.2.54

2 files

0.2.53

2 files

0.2.52

2 files

0.2.51

2 files

0.2.50

2 files

0.2.40

2 files

0.2.1

2 files

0.2.0

2 files

0.1.24

2 files

0.1.23

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page