The set of adapter protocols and base functionality that supports integration with dbt-core
Actively maintained. Last release 13 days ago, commits in 23 of the last 26 weeks. A safe choice.
pip install dbt-adapters
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