Skip to main content

The db2 adapter plugin for dbt (data build tool)

Project description

pypi python

dbt-ibmdb2

This plugin ports dbt functionality to IBM DB2.

This is an experimental plugin:

Please read these docs carefully and use at your own risk. Issues welcome!

TODO

  • Implement incremental strategy if necessary
  • Find better way to rename/copy views
  • Check compatibility with DB2 for z/OS

Table of Contents

Installation

This plugin can be installed via pip:

$ pip install dbt-ibmdb2

Supported features

DB2 LUW DB2 z/OS Feature
🤷 Table materialization
🤷 View materialization
🤷 Incremental materialization
🤷 Ephemeral materialization
🤷 Seeds
🤷 Sources
🤷 Custom data tests
🤷 Docs generate
🤷 Snapshots

Notes:

  • dbt-ibmdb2 is built on the ibm_db python package and there are some known encoding issues related to z/OS.

Configuring your profile

A dbt profile can be configured to run against DB2 using the following configuration example:

Example entry for profiles.yml:

your_profile_name:
  target: dev
  outputs:
    dev:
      type: ibmdb2
      schema: analytics
      database: test
      host: localhost
      port: 50000
      protocol: TCPIP
      username: my_username
      password: my_password
Option Description Required? Example
type The specific adapter to use Required ibmdb2
schema Specify the schema (database) to build models into Required analytics
database Specify the database you want to connect to Required testdb
host Hostname or IP-adress Required localhost
port The port to use Optional 50000
protocol Protocol to use Optional TCPIP
username The username to use to connect to the server Required my-username
password The password to use for authenticating to the server Required my-password

Running Tests

See test/README.md for details on running the integration tests.

Reporting bugs

Want to report a bug or request a feature? Open an issue.

Credits

dbt-ibmdb2 is heavily inspired by and borrows from dbt-mysql and dbt-oracle.

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

dbt-ibmdb2-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

dbt_ibmdb2-0.1.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file dbt-ibmdb2-0.1.1.tar.gz.

File metadata

  • Download URL: dbt-ibmdb2-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1043-azure

File hashes

Hashes for dbt-ibmdb2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eadb45da5154b217f7afe37908132d48e94b1acc7e5ebf0890f19f756331e506
MD5 e1787ca3998764c390d86d3fceb9910e
BLAKE2b-256 a9b901324e28d35220338e31c8522391f78a9278cab3741a5271388906a59d4a

See more details on using hashes here.

File details

Details for the file dbt_ibmdb2-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dbt_ibmdb2-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1043-azure

File hashes

Hashes for dbt_ibmdb2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8abaceec76b5d965e2f626a16fc2bfd068d0a551ed07e52f826448272bbc1b8
MD5 338aed285e21da589a54fccaf360ad37
BLAKE2b-256 efa742612985f12072fa5424f183eae0e5380b773d0035c13c713da1049ad9aa

See more details on using hashes here.

Supported by

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