Ballerina (programming language): Difference between revisions

Content deleted Content added
all cited to questionable group blog, not independent third party RS
MOS:HEAD
Line 137:
</syntaxhighlight>
 
=== Sequence Diagramdiagram ===
The generated [[sequence diagram]] is a canonical representation of the source code. The two representations can be used interchangeably. The diagram support is provided through the Ballerina VS Code plugin. The following are a couple of such generated sequence diagrams, compared with its associated code.
 
A sample program for retrieving and processing COVID-19 data:
Line 148:
[[File:Consuming-services-code+diagram.png]]
 
=== JSON Supportsupport ===
The language provides support for working with JSON values. The builtin type `json` is defined as the following union: <code>()|boolean|int|float|decimal|string|json[]|map<json></code>
 
Line 167:
</syntaxhighlight>
 
=== Code to Cloudcloud ===
Docker and Kubernetes artifacts required for deploying the code to the cloud can be generated when building the code. Values required for these artifacts are derived from the code. Additionally, one can override these values as well using the <code>Cloud.toml</code> file. To enable generation of the cloud artifacts, the users can use the <code>cloud</code> build option in the <code>Ballerina.toml</code> file. Use <code>docker</code> to generate just the Docker image and the Dockerfile and use <code>k8s</code> to generate Kubernetes artifacts as well. Minimal sample config TOML files would look something like the following: