Skip to main content

The set of adapter protocols and base functionality that supports integration with dbt-core

Reason this release was yanked:

unintended macro changes went in this release

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

dbt_adapters-1.24.3.tar.gz (145.7 kB view details)

Uploaded Source

Built Distribution

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

dbt_adapters-1.24.3-py3-none-any.whl (176.7 kB view details)

Uploaded Python 3

File details

Details for the file dbt_adapters-1.24.3.tar.gz.

File metadata

  • Download URL: dbt_adapters-1.24.3.tar.gz
  • Upload date:
  • Size: 145.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dbt_adapters-1.24.3.tar.gz
Algorithm Hash digest
SHA256 ab1746635b191c809d3a0a6d3cf3db9021eee9f5e59c0c6871cd1b72be37a81b
MD5 d869a28e0e826b26a3728a4cb660aeff
BLAKE2b-256 66c2b708311ce70b15f5db392f4af246e0983a5980461f225e0900d0a6165dd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_adapters-1.24.3.tar.gz:

Publisher: publish-oss.yml on dbt-labs/dbt-adapters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dbt_adapters-1.24.3-py3-none-any.whl.

File metadata

  • Download URL: dbt_adapters-1.24.3-py3-none-any.whl
  • Upload date:
  • Size: 176.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dbt_adapters-1.24.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10bdd62873fa680e5bc9182136fed6c9bf2e1e1e59c8cc3f9121612f37ad959f
MD5 57b8acae7b139b10181404d66a203834
BLAKE2b-256 befd3046b9c2ec548fb0b580f37d4bcbcabe62e379005387312884b05ddfe4bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbt_adapters-1.24.3-py3-none-any.whl:

Publisher: publish-oss.yml on dbt-labs/dbt-adapters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page