Skip to main content

是一款 dbt (data build tool) 的适配器插件, 基于 dbt-ibmdb2@1.8.0 修订。

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
      user: 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
user 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_db2-1.0.1.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

dbt_db2-1.0.1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file dbt_db2-1.0.1.tar.gz.

File metadata

  • Download URL: dbt_db2-1.0.1.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.14

File hashes

Hashes for dbt_db2-1.0.1.tar.gz
Algorithm Hash digest
SHA256 201a4fb5e8f6c3873984b18eab63e132ca6d472976887e9331d680afe50a051e
MD5 ec225cfef4f92892de9ac1f17ba294df
BLAKE2b-256 e947cf7d6619def83563002b7b93f4fa901a84e50fbb1663d4a93e7fafdee046

See more details on using hashes here.

File details

Details for the file dbt_db2-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dbt_db2-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.14

File hashes

Hashes for dbt_db2-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b19da53b383bf9e6aeb83f4fc6b8a2d7bb0f088b8d6730f05707d5c871aa5d1
MD5 074653ac86d396e20018b17c81f9dd78
BLAKE2b-256 2dca13d4f8a9dfef8a27dbd855208e80dcf76aea4093d7ff4f45b0325b740c0e

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