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

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

commit db1374cde771ee5c00d584447c838f046f8d0f10
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Jun 14 15:12:49 2021 +0200

    MariaDB Sink Kamelet Fixed description and more information
---
 .../main/resources/kamelets/mariadb-sink.kamelet.yaml | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git 
a/library/camel-kamelets-catalog/src/main/resources/kamelets/mariadb-sink.kamelet.yaml
 
b/library/camel-kamelets-catalog/src/main/resources/kamelets/mariadb-sink.kamelet.yaml
index fac5e76..c1fc0a6 100644
--- 
a/library/camel-kamelets-catalog/src/main/resources/kamelets/mariadb-sink.kamelet.yaml
+++ 
b/library/camel-kamelets-catalog/src/main/resources/kamelets/mariadb-sink.kamelet.yaml
@@ -16,12 +16,17 @@ spec:
     description: |-
       Send data to a MariaDB Database.
 
-      In you KameletBinding file you'll need to explicitly declare the MariaDB 
driver dependency, like in the following YAML snippet
+      In you KameletBinding file you'll need to explicitly declare the SQL 
Server driver dependency in spec->integration->dependencies
       
-      spec:
-        integration:
-          dependencies:
-          - "mvn:org.mariadb.jdbc:mariadb-java-client:<version>"
+      - "mvn:org.mariadb.jdbc:mariadb-java-client:<version>"
+
+      This Kamelet expects a JSON as body. The mapping between the JSON fields 
and parameters is done by key, so if you have the following query:
+
+      'INSERT INTO accounts (username,city) VALUES (:#username,:#city)'
+
+      The Kamelet needs to receive as input something like:
+
+      '{ "username":"oscerd", "city":"Rome"}'
     required:
       - serverName
       - username
@@ -55,10 +60,14 @@ spec:
         title: Query
         description: The Query to execute against the MariaDB Database
         type: string
+        example: 'INSERT INTO accounts (username,city) VALUES 
(:#username,:#city)'
       databaseName:
         title: Database Name
         description: The Database Name we are pointing
         type: string
+  types:
+    in:
+      mediaType: application/json
   dependencies:
   - "camel:jackson"
   - "camel:kamelet"

Reply via email to