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/*

Metadata

Release files for dvt-adapters 0.2.60

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dvt-adapters 0.2.60
File Size Uploaded
dvt_adapters-0.2.60.tar.gz 706.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dvt-adapters 0.2.60
File Interpreter ABI Platform
dvt_adapters-0.2.60-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / dvt_adapters-0.2.60.tar.gz

Download URL dvt_adapters-0.2.60.tar.gz
Size 706.7 kB
Tags Source
SHA-256 checksum
How to use checksums
df3c608f6efeb1b90a148954ae341b341f5fe4b93fa54f91189da36438bf3bd6
BLAKE2b-256 checksum
How to use checksums
aaef0592042bb2dbada2ed352d0b3d657c26929c48a4052619f76afc49743f5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release files / dvt_adapters-0.2.60-py3-none-any.whl

Download URL dvt_adapters-0.2.60-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
93a101f6b61dcffc6e95b6de005e5179d62fe56f24e081633bcf0e27d9006944
BLAKE2b-256 checksum
How to use checksums
e4f1188b375cf9857c42d42d3e017ab731b565f3974a33ed187efcfcb8c736c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release history Release notifications | RSS feed

0.2.62

2 release files

0.2.61

2 release files

This release

0.2.60 This release

2 release files

0.2.59

2 release files

0.2.52

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.0

2 release 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