Skip to main content

dbt adapter for IBM db2 for i

Project description

dbt-db2fori

A dbt adapter for IBM's DB2 for i v7.2+. The connection to the warehouse is through ODBC and requires that pyodbc is installed. All credits to dbt-sqlserver adapter and dbt-ibmdb2 projects that heavily inspired this adapter.

Why this adapter?

A similar adapter dbt-ibmdb2 exists, however, dbt-ibmdb2 uses the ibm_db Python package to connect to IBM DB2. This adapter connects to the warehouse using pyodbc.

Features

The following materializations are supported:

  • Incremental
  • Snapshot
  • View
  • Table
  • Seed

Ephemeral models have not been tested yet.

Installation

Use pip to install:

pip install dbt-db2fori

An example profiles.yml is:

default:
    outputs:
        dev:
            type: db2_for_i
            threads: 4
            driver: IBM i Access ODBC Driver
            system: system
            username: "{{ env_var('USER_NAME') }}"
            password: "{{ env_var('PASSWORD') }}"
            database: db
            schema: schema

    target: dev

To report a bug or request a feature, open an issue

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_db2fori-1.7.9.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_db2fori-1.7.9-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file dbt_db2fori-1.7.9.tar.gz.

File metadata

  • Download URL: dbt_db2fori-1.7.9.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

File hashes

Hashes for dbt_db2fori-1.7.9.tar.gz
Algorithm Hash digest
SHA256 4e098c6ba44307ea4c6ed554b961708232aae49190168160a4b1c8908f2924b7
MD5 0dc20b7d13ebda5c252239846b467118
BLAKE2b-256 1234dc75ebe40911aac10cdc85099c8a94e47a680a8ceecdf3f4fafe0b813685

See more details on using hashes here.

File details

Details for the file dbt_db2fori-1.7.9-py3-none-any.whl.

File metadata

  • Download URL: dbt_db2fori-1.7.9-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

File hashes

Hashes for dbt_db2fori-1.7.9-py3-none-any.whl
Algorithm Hash digest
SHA256 11d8d741132a9ad6d46a2609843349019f10688e20e0ff976df914efba3cdbb6
MD5 30bd28e5fddb56fa3c3f86d58e24d591
BLAKE2b-256 d59582154b7673f1930c4a73fd10ff6baa8365baf1c6c3a5264740aba495637f

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