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

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

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / dvt_adapters-0.2.61.tar.gz

Download URL dvt_adapters-0.2.61.tar.gz
Size 706.7 kB
Tags Source
SHA-256 checksum
How to use checksums
650cda5e90c5c78a63e24c7c84500c0cc37802b20f37c91037ce75a8c75cd46a
BLAKE2b-256 checksum
How to use checksums
bea18a38eb9338d4b709f74668719bfcac6a44496f04c81f4aadfa9f4676881d
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.61-py3-none-any.whl

Download URL dvt_adapters-0.2.61-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2ffde0d4d0edfe0112c88d92ee810a223ab06ed4ff13523392c91985f4362757
BLAKE2b-256 checksum
How to use checksums
18695040c4a7fc1b420b3f95fc5c842f798f92a29e077370f13d70eea23fe0d0
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

This release

0.2.61 This release

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