camel-mariadb-sink-kafka-connector sink configuration

Connector Description: Send data to a MariaDB Database. In your KameletBinding file, you must explicitly declare the MariaDB Server driver dependency in spec->integration->dependencies. - "mvn:org.mariadb.jdbc:mariadb-java-client:<version>" This Kamelet expects a JSON-formatted body. Use key:value pairs to map the JSON fields and parameters. For example, here is a query: 'INSERT INTO accounts (username,city) VALUES (:#username,:#city)' Here is example input for the example query: '{ "username":"oscerd", "city":"Rome"}'

When using camel-mariadb-sink-kafka-connector as sink make sure to use the following Maven dependency to have support for the connector:

<dependency>
  <groupId>org.apache.camel.kafkaconnector</groupId>
  <artifactId>camel-mariadb-sink-kafka-connector</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel Kafka connector version -->
</dependency>

To use this sink connector in Kafka connect you’ll need to set the following connector.class

connector.class=org.apache.camel.kafkaconnector.mariadbsink.CamelMariadbsinkSinkConnector

The camel-mariadb-sink sink connector supports 6 options, which are listed below.

Name Description Default Priority

camel.kamelet.mariadb-sink.serverName

Required The server name for the data source. Example: localhost.

HIGH

camel.kamelet.mariadb-sink.serverPort

The server port for the data source.

"3306"

MEDIUM

camel.kamelet.mariadb-sink.username

Required The username to access a secured MariaDB Database.

HIGH

camel.kamelet.mariadb-sink.password

Required The password to access a secured MariaDB Database.

HIGH

camel.kamelet.mariadb-sink.query

Required The query to execute against the MariaDB Database. Example: INSERT INTO accounts (username,city) VALUES (:#username,:#city).

HIGH

camel.kamelet.mariadb-sink.databaseName

Required The name of the MariaDB Database.

HIGH

The camel-mariadb-sink sink connector has no converters out of the box.

The camel-mariadb-sink sink connector has no transforms out of the box.

The camel-mariadb-sink sink connector has no aggregation strategies out of the box.