From 00666767675405ea695f1981773f10e3ca00371d Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:38:42 +0000 Subject: [PATCH] Update wiki Home page for mariadb-sink --- Home.md | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/Home.md b/Home.md index 93a012c..01454a0 100644 --- a/Home.md +++ b/Home.md @@ -1,21 +1,43 @@ -# Deploy the Project on CamelX Platform +# MariaDB Sink -Deploy on CamelX Platform in three steps +Send data to a MariaDB Database. -## Step 1: Create a release -From the project space, click on **"Create a release"** +In your Pipe file, you must explicitly declare the MariaDB Server driver dependency in spec->integration->dependencies. -The new version is automatically available in the list +- "mvn:org.mariadb.jdbc:mariadb-java-client:" -## Step 2: Deploy -Click on **"Deploy"** +This Kamelet expects a JSON-formatted body. Use key:value pairs to map the JSON fields and parameters. For example, here is a query: -- **Version:** Select the desired release -- **Environment:** Choose `Development`, `Staging`, or `Production` -- **Configuration:** Select the configuration source -- **Resources:** Set CPU and Memory +'INSERT INTO accounts (username,city) VALUES (:#username,:#city)' -## Step 3: Expose -Enable **"Expose"** +Here is example input for the example query: -Choose an **API Gateway** (Internal, Public, etc.) +'{ "username":"oscerd", "city":"Rome"}' + +## Metadata + +| Property | Value | +|----------|-------| +| Type | sink | +| Group | SQL | +| Namespace | Database | +| Support Level | Stable | +| Provider | Apache Software Foundation | + +## Properties + +| Name | Type | Required | Default | Description | +|------|------|----------|---------|-------------| +| `serverName` | string | ✓ | | The server name for the data source. | +| `serverPort` | string | | `3306` | The server port for the data source. | +| `username` | string | ✓ | | The username to access a secured MariaDB Database. | +| `password` | string | ✓ | | The password to access a secured MariaDB Database. | +| `query` | string | ✓ | | The query to execute against the MariaDB Database. | +| `databaseName` | string | ✓ | | The name of the MariaDB Database. | + +## Dependencies + +- `camel:jackson` +- `camel:kamelet` +- `camel:sql` +- `mvn:org.apache.commons:commons-dbcp2:2.13.0`