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 2021/06/14 13:14:11 UTC
[camel-kamelets] 01/03: MariaDB Sink Kamelet Fixed description and
more information
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch mariadb-sink-descr-fix
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit ecc3fe9bde31d107901c9f42d84a602bdc98675d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 14 15:12:05 2021 +0200
MariaDB Sink Kamelet Fixed description and more information
---
mariadb-sink.kamelet.yaml | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/mariadb-sink.kamelet.yaml b/mariadb-sink.kamelet.yaml
index fac5e76..c1fc0a6 100644
--- a/mariadb-sink.kamelet.yaml
+++ b/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"