-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
org = "sample" | ||
name = "execute" | ||
version = "0.1.0" | ||
distribution = "2201.8.2" | ||
|
||
[build-options] | ||
observabilityIncluded = true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Execute function | ||
|
||
Connects to AWS Redshift using the Redshift connector and performs an INSERT operation into a specified table. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up | ||
|
||
Refer to the set up guide in [ReadMe](../../../README.md) for necessary credentials. | ||
|
||
### 2. Configuration | ||
|
||
Configure AWS Redshift API credent ials in Config.toml in the example directory: | ||
|
||
```toml | ||
jdbcUrl="<JDBC URL of the created Redshift cluster>" | ||
user="<Username>" | ||
password="<Password>" | ||
``` | ||
|
||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
org = "sample" | ||
name = "query" | ||
version = "0.1.0" | ||
distribution = "2201.8.2" | ||
|
||
[build-options] | ||
observabilityIncluded = true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Query function | ||
|
||
Connects to AWS Redshift using the Redshift connector and performs a simple SQL query to select all records from a specified table with a limit of 10. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up | ||
|
||
Refer to the set up guide in [ReadMe](../../../README.md) for necessary credentials. | ||
|
||
### 2. Configuration | ||
|
||
Configure AWS Redshift API credentials in Config.toml in the example directory: | ||
|
||
```toml | ||
jdbcUrl="<JDBC URL of the created Redshift cluster>" | ||
user="<Username>" | ||
password="<Password>" | ||
``` | ||
|
||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` |