feat(examples): add ibm_db2i community connector#32
Open
fivetran-clgritton wants to merge 8 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new community connector example for IBM Db2 for i (IBM i / AS400) using pyodbc + the IBM i Access ODBC Driver, including setup assets and documentation, and links it from the repo root README.
Changes:
- Added
ibm/ibm_db2iexample connector (connector.py) that batches DB reads viafetchmany()and upserts to acustomertable. - Added supporting artifacts (
requirements.txt,configuration.json, driver install script) plus an example-specificREADME.md. - Updated the repo root
README.mdto include the new connector in the examples list.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds the new ibm_db2i entry to the connector examples list. |
| ibm/ibm_db2i/requirements.txt | Declares pyodbc dependency for the example connector. |
| ibm/ibm_db2i/README.md | Documents setup, configuration, and behavior for the Db2 for i connector example. |
| ibm/ibm_db2i/drivers/installation.sh | Provides a Debian/Ubuntu install script for IBM i Access ODBC + unixODBC. |
| ibm/ibm_db2i/connector.py | Implements the connector (ODBC connect, batching, upserts, checkpointing). |
| ibm/ibm_db2i/configuration.json | Adds placeholder configuration values for community distribution. |
fivetran-sahilkhirwal
left a comment
Contributor
There was a problem hiding this comment.
can you please check copilot comments
Rest everything looks good
fivetran-JenasVimal
requested changes
Jun 29, 2026
fivetran-JenasVimal
requested changes
Jul 1, 2026
fivetran-JenasVimal
left a comment
Contributor
There was a problem hiding this comment.
Changes look good ,
Please address the failing checks and receive approval from Tech Writers
Contributor
|
Could you please rebase your PR so that the latest checks can run and pass Thank you! |
fivetran-clgritton
force-pushed
the
feature/ibm_db2i
branch
from
July 6, 2026 14:17
2903967 to
f21cb3f
Compare
fivetran-chinmayichandrasekar
left a comment
Contributor
There was a problem hiding this comment.
Left a few suggestions. Thanks
Adds connector for IBM DB2 for i (IBM i / AS400) via pyodbc and the IBM i Access ODBC Driver. Includes full template formatting, CHECKPOINT_INTERVAL + BATCH_SIZE constants, drivers/installation.sh, and README. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Apply black formatting (blank line, long line wrap) - Rename timeout -> timeout_seconds for unit clarity - Increase CHECKPOINT_INTERVAL to 10000 and DEFAULT_TIMEOUT_SECONDS to 60 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ntry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Add per-line comments to stdlib imports - Make constants private (__BATCH_SIZE, __CHECKPOINT_INTERVAL, __DEFAULT_TIMEOUT_SECONDS) - Update schema() docstring URL to new format - Validate port type in validate_configuration() - Narrow Exception to OSError in test_tcp() - Thread state through fetch_and_upsert_data() and use in checkpoints - Add final op.checkpoint() after fetch loop - Validate db_schema against allowlist to prevent SQL injection - Add timeout_seconds to README configuration parameters - Add Windows/macOS to README Requirements - Fix "Setup Guide" capitalization in Getting started - Fix Features: checkpoints every CHECKPOINT_INTERVAL rows, not per batch - Expand Tables created section with primary key guidance - Fix installation.sh: set -euo pipefail, remove apt-get update || true - Apply black line-length 99 formatting Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds table-namespaced state key (customer_last_update_timestamp) and parse_state_timestamp helper to enable incremental syncs after the initial full load. Updates README data handling section to describe the incremental strategy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fivetran-clgritton
force-pushed
the
feature/ibm_db2i
branch
from
July 6, 2026 14:54
f21cb3f to
77f0689
Compare
Co-authored-by: fivetran-chinmayichandrasekar <chinmayi.chandrasekar@fivetran.com>
fivetran-JenasVimal
requested review from
fivetran-chinmayichandrasekar and
fivetran-sahilkhirwal
July 6, 2026 20:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds connector for IBM DB2 for i (IBM i / AS400) via pyodbc and the IBM i Access ODBC Driver. Includes full template formatting, CHECKPOINT_INTERVAL + BATCH_SIZE constants, drivers/installation.sh, and README.
Description of Change
The existing ibm_db2 example doesn't directly work for Db2 for i. Additionally, using the IBM ODBC driver with pyodbc seems to be faster in my testing. I'm creating a new basic community connector for Db2i using the ODBC driver.
Testing
Tested in Fivetran_Sales_Sandbox:

Checklist
Some tips and links to help validate your PR: