https://github.com/ldclakmal/ballerina-connector-quickstart
Ballerina Connector Quickstart
https://github.com/ldclakmal/ballerina-connector-quickstart
ballerina ballerina-lang connector quickstart swan-lake
Last synced: 7 months ago
JSON representation
Ballerina Connector Quickstart
- Host: GitHub
- URL: https://github.com/ldclakmal/ballerina-connector-quickstart
- Owner: ldclakmal
- License: apache-2.0
- Created: 2018-11-12T04:51:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T16:09:55.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T10:25:56.545Z (9 months ago)
- Topics: ballerina, ballerina-lang, connector, quickstart, swan-lake
- Language: Ballerina
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ballerina Connector Quickstart
[](https://github.com/ldclakmal/ballerina-connector-quickstart/actions/workflows/master.yml)
This is a sample Ballerina connector for demonstration purpose.
## Compatibility
| | **Version** |
|----------------------------|------------------|
| Ballerina Language | Swan Lake Beta 3 |
| Java Development Kit (JDK) | 11 |## Getting started
1. Refer to the [Setting up Ballerina](https://ballerina.io/learn/user-guide/getting-started/setting-up-ballerina/) guide to download and install Ballerina.
2. Clone the [ballerina-connector-quickstart](https://github.com/ldclakmal/ballerina-connector-quickstart) GitHub repository.
3. Move inside to `ballerina-connector-quickstart/connector` directory and execute `$ bal build connector`. It should compile the source, run the tests and generates the executable as follows:```shell
Compiling source
ldclakmal/connector:1.0.0Running Tests
connector
[pass] testMax
1 passing
0 failing
0 skippedGenerating executable
target/bin/connector.jar
```## Samples
Import the `ldclakmal/connector` module into your Ballerina project and check the usage of sample `max` function.
```ballerina
import ballerina/io;
import ldclakmal/connector;public function main() {
int maxNo = connector:max(2, 10);
io:println(maxNo);
}
```