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:

  • We have not tested it extensively
  • Only basic tests are implemented
  • Compatibility with other dbt packages (like dbt_utils) is only partially tested

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

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
      extra_connect_opts: my_extra_config_options
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
extra_connect_opts Extra connection options Optional Security=SSL;SSLClientKeyStoreDB=<path-to-client-keystore>;SSLClientKeyStash=<path-to-client-keystash>

Setup dev environment and run tests

Make sure you have docker and poetry installed globally.

make install
make test
make uninstall

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.4.3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

dbt_ibmdb2-0.4.3-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file dbt_ibmdb2-0.4.3.tar.gz.

File metadata

  • Download URL: dbt_ibmdb2-0.4.3.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure

File hashes

Hashes for dbt_ibmdb2-0.4.3.tar.gz
Algorithm Hash digest
SHA256 cc0587c190da4bf435dbd440dc30e6e7933b04493de133b8a7695da28dd402f3
MD5 220f74db8e2bd6fa625fcf8ad5d9a341
BLAKE2b-256 9eb2367495546fcdc40846cce110202d8d30a451a2785a2661c2154d302cdc06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbt_ibmdb2-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.16 Linux/5.15.0-1024-azure

File hashes

Hashes for dbt_ibmdb2-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de0e5d3fdb19b51d1ea83c2ba24e1145b757bb6e2109f09e5d3c3b4eb6d1e5f0
MD5 ad2986eff9e90766e9dd44c8e574852c
BLAKE2b-256 380c0aeadcd282e5edeaf4f38e93fd49f1d57e3cec3d892490d33e50b8933d6a

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