Skip to main content

DVT database adapters — all engines in one package

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


Download files

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

Source Distribution

dvt_adapters-0.2.0.tar.gz (529.9 kB view details)

Uploaded Source

Built Distribution

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

dvt_adapters-0.2.0-py3-none-any.whl (877.5 kB view details)

Uploaded Python 3

File details

Details for the file dvt_adapters-0.2.0.tar.gz.

File metadata

  • Download URL: dvt_adapters-0.2.0.tar.gz
  • Upload date:
  • Size: 529.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for dvt_adapters-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7b9004b79119d123e6e96968749fa57dd3af6d6da647a161fd829a9760b948f7
MD5 2c21deeae4786978b25531ecb99b0817
BLAKE2b-256 6dd648d1167cff346099f1939cb6a1df3841c244e6af5847f8c12b8a133acc31

See more details on using hashes here.

File details

Details for the file dvt_adapters-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dvt_adapters-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 877.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for dvt_adapters-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21e17a4a153f136d501f458c26cc914f05fb4c3614d82d1cdcf3991515fd7397
MD5 22154d8fd0f34c431bacaed45359d0d3
BLAKE2b-256 d02d5c18626ebffb0538e95ae1fa5cc988f9e1e4af19698542058c26739128df

See more details on using hashes here.

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