Introduction
...
The suggestion is to create maven submodule db2-plugin under database-plugins repo.
Sink Properties
User Facing Name | Type | Description | Constraints |
---|---|---|---|
Label | String | Label for UI | |
Reference Name | String | Uniquely identified name for lineage | |
Host | String | DB2 host | Required (defaults to localhost on UI) |
Port | Number | Specific port which DB2 is listening to | Optional (default |
50000) | |||
Database | String | Database name to connect | Required |
Username | String | DB username | Required |
Password | Password | User password | Required |
Transaction Isolation Level | Select | Transaction isolation level for queries run by this sink | |
Connection Arguments | Keyvalue | A list of arbitrary string tag/value pairs as connection arguments, list of properties: |
https://www.ibm.com/support/knowledgecenter/bg/SSEPGG_9.7.0
/com.ibm.db2.luw.apdv.java.doc/src/tpc/imjcc_r0052075.html
Table Name | String | Name of a database table to write to |
Source Properties
User Facing Name | Type | Description | Constraints |
---|---|---|---|
Label | String | Label for UI | |
Reference Name | String | Uniquely identified name for lineage | |
Host | String | DB2 host | Required (defaults to localhost on UI) |
Port | Number | Specific port which DB2 is listening to | Optional (default |
50000) | |||
Database | String | Database name to connect | Required |
Import Query | String | Query for import data | Valid SQL query |
Username | String | DB username | Required |
Password | String | User password | Required |
Bounding Query | String | Returns max and minof split-By Filed | Valid SQL query |
Split-By Field Name | String | Field name which will be used to generate splits | |
Number of Splits to Generate | Number | Number of splits to generate | |
Transaction Isolation Level | Select | Transaction isolation level for queries run by this sink | |
Connection Arguments | Keyvalue | A list of arbitrary string tag/value pairs as connection arguments, list of properties: |
https://www.ibm.com/support/knowledgecenter/bg/SSEPGG_9.7.0
/com.ibm.db2.luw.apdv.java.doc/src/tpc/imjcc_r0052075.html
Action Properties
User Facing Name | Type | Description | Constraints |
---|---|---|---|
Label | String | Label for UI | |
Host | String | DB2 host | Required (defaults to localhost on UI) |
Port | Number | Specific port which DB2 is listening to | Optional (default |
50000) | |||
Database | String | Database name to connect | Required |
Username | String | DB username | Required |
Password | String | User password | Required |
Connection Arguments | Keyvalue | A list of arbitrary string tag/value pairs as connection arguments, list of properties: |
https://www.ibm.com/support/knowledgecenter/bg/SSEPGG_9.7.0
/com.ibm.db2.luw.apdv.java.doc/src/tpc/imjcc_r0052075.htmlDatabase Command | String | Database command to run | Valid SQL query |
Approach
Create a module db2-plugin in database-plugins project, reuse existing database-plugins code if possible. Add DB2-specific properties to configuration, add support for DB2-specific datatypes. Update UI widgets JSON definitions.
...