generated from camel.apache.org/kamelet
Update wiki Home page for postgresql-sink
parent
87306406a5
commit
d06588dd9d
47
Home.md
47
Home.md
@ -1,21 +1,40 @@
|
|||||||
# Deploy the Project on CamelX Platform
|
# PostgreSQL Sink
|
||||||
|
|
||||||
Deploy on CamelX Platform in three steps
|
Send data to a PostgreSQL Database.
|
||||||
|
|
||||||
## Step 1: Create a release
|
This Kamelet expects a JSON-formatted body. Use key:value pairs to map the JSON fields and parameters. For example, here is a query:
|
||||||
From the project space, click on **"Create a release"**
|
|
||||||
|
|
||||||
The new version is automatically available in the list
|
'INSERT INTO accounts (username,city) VALUES (:#username,:#city)'
|
||||||
|
|
||||||
## Step 2: Deploy
|
Here is example input for the example query:
|
||||||
Click on **"Deploy"**
|
|
||||||
|
|
||||||
- **Version:** Select the desired release
|
'{ "username":"oscerd", "city":"Rome"}'
|
||||||
- **Environment:** Choose `Development`, `Staging`, or `Production`
|
|
||||||
- **Configuration:** Select the configuration source
|
|
||||||
- **Resources:** Set CPU and Memory
|
|
||||||
|
|
||||||
## Step 3: Expose
|
## Metadata
|
||||||
Enable **"Expose"**
|
|
||||||
|
|
||||||
Choose an **API Gateway** (Internal, Public, etc.)
|
| 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 | | `5432` | The server port for the data source. |
|
||||||
|
| `username` | string | ✓ | | The username to access a secured PostgreSQL Database. |
|
||||||
|
| `password` | string | ✓ | | The password to access a secured PostgreSQL Database. |
|
||||||
|
| `query` | string | ✓ | | The query to execute against the PostgreSQL Database. |
|
||||||
|
| `databaseName` | string | ✓ | | The name of the PostgreSQL Database. |
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- `camel:jackson`
|
||||||
|
- `camel:kamelet`
|
||||||
|
- `camel:sql`
|
||||||
|
- `mvn:org.postgresql:postgresql:42.7.5`
|
||||||
|
- `mvn:org.apache.commons:commons-dbcp2:2.13.0`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user