1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🎉 New Source: IBM DB2 (#4197)

* Db2 source: implementation and acceptance tests

* Db2 source: added documentation, build info, Db2SourceComprehensiveTest

* Db2 source: improved Db2SourceComprehensiveTest

* Db2 source: improved Db2SourceComprehensiveTest

* Db2 source: updated docs

* Db2 source: added test for the special values in Decfloat

* Formatter changes

Co-authored-by: Iryna Kruk <iryna.o.kruk@globallogic.com>
This commit is contained in:
irynakruk
2021-06-23 18:06:31 +03:00
committed by GitHub
parent ebbef5e3ef
commit 0a4712cbe7
18 changed files with 978 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ Airbyte uses a grading system for connectors to help users understand what to ex
|[Greenhouse](./sources/greenhouse.md)| Beta |
|[HTTP Request](./sources/http-request.md)| Alpha |
|[Hubspot](./sources/hubspot.md)| Certified |
|[IBM Db2](./sources/db2.md)| Beta |
|[Instagram](./sources/instagram.md)| Certified |
|[Intercom](./sources/intercom.md)| Beta |
|[Iterable](./sources/iterable.md)| Beta |

View File

@@ -0,0 +1,61 @@
# IBM Db2
## Overview
The IBM Db2 source allows you to sync data from Db2.
It supports both Full Refresh and Incremental syncs. You can choose if this connector will copy only the new or updated data, or all rows in the tables and columns you set up for replication, every time a sync is run.
This IBM Db2 source connector is built on top of the [IBM Data Server Driver](https://mvnrepository.com/artifact/com.ibm.db2/jcc/11.5.5.0) for JDBC and SQLJ. It is a pure-Java driver (Type 4) that supports the JDBC 4 specification as described in IBM Db2 [documentation](https://www.ibm.com/docs/en/db2/11.5?topic=apis-supported-drivers-jdbc-sqlj).
#### Resulting schema
The IBM Db2 source does not alter the schema present in your warehouse. Depending on the destination connected to this source, however, the result schema may be altered. See the destination's documentation for more details.
#### Features
| Feature | Supported?\(Yes/No\) | Notes |
| :--- | :--- | :--- |
| Full Refresh Sync | Yes | |
| Incremental - Append Sync | Yes | |
| Namespaces | Yes | |
## Getting started
### Requirements
1. You'll need the following information to configure the IBM Db2 source:
* **Host**
* **Port**
* **Database**
* **Username**
* **Password**
2. Create a dedicated read-only Airbyte user and role with access to all schemas needed for replication.
### Setup guide
#### 1. Specify port, host and name of the database.
#### 2. Create a dedicated read-only user with access to the relevant schemas \(Recommended but optional\)
This step is optional but highly recommended allowing for better permission control and auditing. Alternatively, you can use Airbyte with an existing user in your database.
Please create a dedicated database user and run the following commands against your database:
```sql
-- create Airbyte role
CREATE ROLE 'AIRBYTE_ROLE';
-- grant Airbyte database access
GRANT CONNECT ON 'DATABASE' TO ROLE 'AIRBYTE_ROLE'
GRANT ROLE 'AIRBYTE_ROLE' TO USER 'AIRBYTE_USER'
```
Your database user should now be ready for use with Airbyte.
## Changelog
| Version | Date | Pull Request | Subject |
| :------ | :-------- | :----- | :------ |
| 0.1.0 | 2021-06-22 | [4197](https://github.com/airbytehq/airbyte/pull/4197) | New Source: IBM DB2 |