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

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

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / dvt_adapters-0.2.59.tar.gz

Download URL dvt_adapters-0.2.59.tar.gz
Size 706.7 kB
Tags Source
SHA-256 checksum
How to use checksums
90c2d067c456648f32f9ea244b6b6fb714b251b824eba44097a393bb2d86f3e2
BLAKE2b-256 checksum
How to use checksums
19e02863cb973f9fb5fc048dcca18b920edd4b53ca097f2e5b4586bca58819c1
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.59-py3-none-any.whl

Download URL dvt_adapters-0.2.59-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
17d3a80457c60d432c4bdcaa5aaa91027d26da437844a9ce6fa1171c8c4f54e0
BLAKE2b-256 checksum
How to use checksums
4c66c7ac830d242e3e8b5d5c5befbacde23dda85caf778dc7449d7a052a4a006
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

0.2.60

2 release files

This release

0.2.59 This release

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