You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/11/25 16:01:39 UTC

(camel-kamelets) branch 4.8.x updated (922a93a8 -> c045b80f)

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

acosentino pushed a change to branch 4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


    from 922a93a8 SQL Kamelets: Disable autowiring by default - AWS Redshift Sink
     new 894346f4 SQL Kamelets: Disable autowiring by default - Snowflake Source
     new c045b80f SQL Kamelets: Disable autowiring by default - Snowflake Sink

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 kamelets/snowflake-sink.kamelet.yaml                                | 6 +++++-
 kamelets/snowflake-source.kamelet.yaml                              | 6 +++++-
 .../src/main/resources/kamelets/snowflake-sink.kamelet.yaml         | 6 +++++-
 .../src/main/resources/kamelets/snowflake-source.kamelet.yaml       | 6 +++++-
 4 files changed, 20 insertions(+), 4 deletions(-)


(camel-kamelets) 02/02: SQL Kamelets: Disable autowiring by default - Snowflake Sink

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c045b80f7431762aecebe4b12242bad42ed1f469
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 25 16:33:11 2024 +0100

    SQL Kamelets: Disable autowiring by default - Snowflake Sink
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/snowflake-sink.kamelet.yaml                                | 6 +++++-
 .../src/main/resources/kamelets/snowflake-sink.kamelet.yaml         | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/kamelets/snowflake-sink.kamelet.yaml b/kamelets/snowflake-sink.kamelet.yaml
index 48639b77..6e013f3b 100644
--- a/kamelets/snowflake-sink.kamelet.yaml
+++ b/kamelets/snowflake-sink.kamelet.yaml
@@ -85,6 +85,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-snowflake-sink
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:net.snowflake.client.jdbc.SnowflakeBasicDataSource"
         properties:
@@ -99,6 +103,6 @@ spec:
           json: 
             library: Jackson
       - to: 
-          uri: "sql:{{query}}"
+          uri: "{{local-sql-snowflake-sink}}:{{query}}"
           parameters:
             dataSource: "#bean:{{dsBean}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
index 48639b77..6e013f3b 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/snowflake-sink.kamelet.yaml
@@ -85,6 +85,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-snowflake-sink
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:net.snowflake.client.jdbc.SnowflakeBasicDataSource"
         properties:
@@ -99,6 +103,6 @@ spec:
           json: 
             library: Jackson
       - to: 
-          uri: "sql:{{query}}"
+          uri: "{{local-sql-snowflake-sink}}:{{query}}"
           parameters:
             dataSource: "#bean:{{dsBean}}"


(camel-kamelets) 01/02: SQL Kamelets: Disable autowiring by default - Snowflake Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 894346f4b6d11b95a06d1d7e0fc0b476ea4fedf1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 25 16:31:45 2024 +0100

    SQL Kamelets: Disable autowiring by default - Snowflake Source
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/snowflake-source.kamelet.yaml                              | 6 +++++-
 .../src/main/resources/kamelets/snowflake-source.kamelet.yaml       | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/kamelets/snowflake-source.kamelet.yaml b/kamelets/snowflake-source.kamelet.yaml
index 34399660..282a0518 100644
--- a/kamelets/snowflake-source.kamelet.yaml
+++ b/kamelets/snowflake-source.kamelet.yaml
@@ -87,6 +87,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-snowflake-source
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:net.snowflake.client.jdbc.SnowflakeBasicDataSource"
         properties:
@@ -95,7 +99,7 @@ spec:
           url: 'jdbc:snowflake://{{instanceUrl}}'
           databaseName: '{{?databaseName}}'
     from:
-      uri: "sql:{{query}}"
+      uri: "{{local-sql-snowflake-source}}:{{query}}"
       parameters:
         dataSource: "#bean:{{dsBean}}"
         onConsume: "{{?consumedQuery}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
index 34399660..282a0518 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/snowflake-source.kamelet.yaml
@@ -87,6 +87,10 @@ spec:
   - "mvn:org.apache.commons:commons-dbcp2:2.12.0"
   template:
     beans:
+      - name: local-sql-snowflake-source
+        type: "#class:org.apache.camel.component.sql.SqlComponent"
+        properties:
+          autowiredEnabled: "false"
       - name: dsBean
         type: "#class:net.snowflake.client.jdbc.SnowflakeBasicDataSource"
         properties:
@@ -95,7 +99,7 @@ spec:
           url: 'jdbc:snowflake://{{instanceUrl}}'
           databaseName: '{{?databaseName}}'
     from:
-      uri: "sql:{{query}}"
+      uri: "{{local-sql-snowflake-source}}:{{query}}"
       parameters:
         dataSource: "#bean:{{dsBean}}"
         onConsume: "{{?consumedQuery}}"