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.62

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.62
File Size Uploaded
dvt_adapters-0.2.62.tar.gz 706.7 kB Details

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / dvt_adapters-0.2.62.tar.gz

Download URL dvt_adapters-0.2.62.tar.gz
Size 706.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b613605b45958919a3972dfe15102509405bec2a744d49f1176ab8f6955e41
BLAKE2b-256 checksum
How to use checksums
aaaf1b5bcae42787a11aece9c0b51be00c23eb63d091d052696d54d9119d7ede
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.62-py3-none-any.whl

Download URL dvt_adapters-0.2.62-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
63f304c38c4ae2167daabe81c20837ec186025c1affc06aed822a10fd46f59ad
BLAKE2b-256 checksum
How to use checksums
44b7f88c4f8758d692dde518d3a1ba4ff49d2d6d513ef644b70c1d11633b3a02
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

This release

0.2.62 This release

2 release files

0.2.61

2 release files

0.2.60

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