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
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
Release history Release notifications | RSS feed
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.7.tar.gz
(18.3 kB
view hashes)
Built Distribution
Close
Hashes for dbt_db2fori-1.7.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a4452d21781c37a70b19b6e37ead54ae0213359ce376f1c33f180baa0e172f |
|
MD5 | 033cfc78d94c9bdcc58c32b92d5bc67d |
|
BLAKE2b-256 | 647c0bac8fb558fcb6aa9b7fe373de8fded9b6ed46e598ce57dcf211e8b91991 |