You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ic...@apache.org on 2023/05/23 03:07:35 UTC

[seatunnel] branch dev updated: [Improve][Connector-V2][Jdbc-Sink][Doc] Add the generate sink sql par… (#4797)

This is an automated email from the ASF dual-hosted git repository.

ic4y pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 922c555aa [Improve][Connector-V2][Jdbc-Sink][Doc] Add the generate sink sql par… (#4797)
922c555aa is described below

commit 922c555aa977b09d64063c5f245167eec178915b
Author: ZhilinLi <zh...@gmail.com>
AuthorDate: Tue May 23 11:07:26 2023 +0800

    [Improve][Connector-V2][Jdbc-Sink][Doc] Add the generate sink sql par… (#4797)
    
    * [Improve][Connector-V2][Jdbc-Sink][Doc] Add the generate sink sql parameter for the jdbc sinj document
---
 .github/workflows/code-analysys.yml | 2 +-
 docs/en/connector-v2/sink/Jdbc.md   | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/code-analysys.yml b/.github/workflows/code-analysys.yml
index 4fda66e5f..d4a0227da 100644
--- a/.github/workflows/code-analysys.yml
+++ b/.github/workflows/code-analysys.yml
@@ -36,7 +36,7 @@ jobs:
           java-version: 11
           distribution: 'adopt'
       - name: Run SonarCloud Analysis
-        run: bash ./tools/sonarcheck/check.sh          
+        run: bash ./tools/sonarcheck/check.sh
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
\ No newline at end of file
diff --git a/docs/en/connector-v2/sink/Jdbc.md b/docs/en/connector-v2/sink/Jdbc.md
index d5b17c757..10f2a3377 100644
--- a/docs/en/connector-v2/sink/Jdbc.md
+++ b/docs/en/connector-v2/sink/Jdbc.md
@@ -42,6 +42,7 @@ support `Xa transactions`. You can set `is_exactly_once=true` to enable it.
 | batch_size                                | Int     | No       | 1000          |
 | batch_interval_ms                         | Int     | No       | 1000          |
 | is_exactly_once                           | Boolean | No       | false         |
+| generate_sink_sql                         | Boolean | No       | false         |
 | xa_data_source_class_name                 | String  | No       | -             |
 | max_commit_attempts                       | Int     | No       | 3             |
 | transaction_timeout_sec                   | Int     | No       | -1            |
@@ -112,6 +113,10 @@ For batch writing, when the number of buffers reaches the number of `batch_size`
 Whether to enable exactly-once semantics, which will use Xa transactions. If on, you need to
 set `xa_data_source_class_name`.
 
+### generate_sink_sql[boolean]
+
+Generate sql statements based on the database table you want to write to
+
 ### xa_data_source_class_name[string]
 
 The xa data source class name of the database Driver, for example, mysql is `com.mysql.cj.jdbc.MysqlXADataSource`, and