The set of adapter protocols and base functionality that supports integration with dbt-core
Project description
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
Built Distribution
File details
Details for the file dbt_adapters-1.16.1.tar.gz
.
File metadata
- Download URL: dbt_adapters-1.16.1.tar.gz
- Upload date:
- Size: 129.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cd17f8d5f614455647ebe2eaaddb50c11cf4a7854a2599e276194d5dba66402d
|
|
MD5 |
f309ced8fb3a781f5badda4a9dc75d7d
|
|
BLAKE2b-256 |
1c4c2a26631c34922e17bd0315d380f7f83b9a77d4cbe60b2a2f145df07454f6
|
Provenance
The following attestation bundles were made for dbt_adapters-1.16.1.tar.gz
:
Publisher:
publish-oss.yml
on dbt-labs/dbt-adapters
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dbt_adapters-1.16.1.tar.gz
-
Subject digest:
cd17f8d5f614455647ebe2eaaddb50c11cf4a7854a2599e276194d5dba66402d
- Sigstore transparency entry: 270769895
- Sigstore integration time:
-
Permalink:
dbt-labs/dbt-adapters@7fdc5c04d6b54d4028e35c5ce56f1f96d3ce28d8
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/dbt-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-oss.yml@7fdc5c04d6b54d4028e35c5ce56f1f96d3ce28d8
-
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dbt_adapters-1.16.1-py3-none-any.whl
.
File metadata
- Download URL: dbt_adapters-1.16.1-py3-none-any.whl
- Upload date:
- Size: 166.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1ccdb1923ed32f9997c9cab6280f765e92935300a6cbae60458f30bf73deb781
|
|
MD5 |
edac23f82a1586985107e5a84a181f68
|
|
BLAKE2b-256 |
6ac05e7419478dd3053cb97f16ea9dd7f05a44e2a125946bd352df16f1ae5824
|
Provenance
The following attestation bundles were made for dbt_adapters-1.16.1-py3-none-any.whl
:
Publisher:
publish-oss.yml
on dbt-labs/dbt-adapters
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dbt_adapters-1.16.1-py3-none-any.whl
-
Subject digest:
1ccdb1923ed32f9997c9cab6280f765e92935300a6cbae60458f30bf73deb781
- Sigstore transparency entry: 270769904
- Sigstore integration time:
-
Permalink:
dbt-labs/dbt-adapters@7fdc5c04d6b54d4028e35c5ce56f1f96d3ce28d8
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/dbt-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-oss.yml@7fdc5c04d6b54d4028e35c5ce56f1f96d3ce28d8
-
Trigger Event:
workflow_dispatch
-
Statement type: