Skip to main content

`Tap-DB2` is a Singer tap for IBM DB2 data sources.

Project description

Tap-DB2 👑

Tap-DB2 is a Singer tap for IBM DB2 data sources. Built with the Meltano Tap SDK for Singer Taps.

❗️ Caution: This tap has only been tested against an IBM DB2 running on z/OS.

Installation ⚙️

Install from PyPi:

pipx install tap-db2

Install from GitHub:

pipx install git+https://github.com/danielptv/tap-db2.git@main

Configuration 📝

Setting Required Default Description
host True None The DB2 hostname.
port True None The DB2 port.
database True None The DB2 database.
schema False None The DB2 schema.
user True None The DB2 username.
password True None The DB2 password.
encryption False None Use to enable encrypted connection to DB2.
connection_parameters False None Additional parameters appended to the DB2 connection string.
stream_maps False None Config object for stream maps capability. For more information check out Stream Maps.
stream_map_config False None User-defined config values to be used within map expressions.

A full list of supported settings and capabilities for this tap is available by running:

tap-db2 --about --format json

Configure using environment variables ✏️

This Singer tap will automatically import any environment variables within the working directory's .env if the --config=ENV is provided, such that config values will be considered if a matching environment variable is set either in the terminal context or in the .env file.

Usage 👷‍♀️

You can easily run tap-db2 by itself or in a pipeline using Meltano.

Executing the Tap Directly 🔨

tap-db2 --version
tap-db2 --help
tap-db2 --config CONFIG --discover > ./catalog.json

Developer Resources 👩🏼‍💻

Follow these instructions to contribute to this project.

Initialize your Development Environment

pipx install poetry
poetry install

Create and Run Tests 🧪

Create tests within the tests subfolder and then run:

poetry run pytest

You can also test the tap-db2 CLI interface directly using poetry run:

poetry run tap-db2 --help

Testing with Meltano

Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.

Next, install Meltano (if you haven't already) and any needed plugins:

# Install meltano
pipx install meltano
# Initialize meltano within this directory
cd tap-db2
meltano install

Now you can test and orchestrate using Meltano:

# Test invocation:
meltano invoke tap-db2 --version
# OR run a test `elt` pipeline:
meltano elt tap-db2 target-jsonl

SDK Dev Guide

See the dev guide for more instructions on how to use the SDK to develop your own taps and targets.

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

tap_ibm_db2-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

tap_ibm_db2-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file tap_ibm_db2-0.1.0.tar.gz.

File metadata

  • Download URL: tap_ibm_db2-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for tap_ibm_db2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ced352603debfbfb47707885c9ad077556d53ca4c20ee5b7e89fcf7f44efb25
MD5 f606b7a6b44f1c19d8b5156444a08f76
BLAKE2b-256 5e353777ebd16b8ec7f33bb420b4e9c0b8e37ccbecb05fbecc3e8aecfbce8768

See more details on using hashes here.

File details

Details for the file tap_ibm_db2-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tap_ibm_db2-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for tap_ibm_db2-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0daa5c2bdb9a7da41125ab79ebb9ef9c65865bbb2a0367966774e1ccda1b86d2
MD5 4a437dc7e566a250f8a6d1f40d5721c8
BLAKE2b-256 9d11feb1f1552a053a822debf33ae45fb19b3912c4944f49fa1824a35de4a46e

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