问题标签 [ballerina]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
312 浏览

arrays - Ballerina 将元素附加到数组的末尾

除了使用以下代码之外,我如何直接将元素附加到数组的末尾。

0 投票
1 回答
70 浏览

ballerina - Ballerina github4 api 中的“存储库”类型错误中不存在字段“许可证”

我正在尝试检索所有者存储库并获取它的分叉数。但是当我运行特定文件时,我收到以下错误:

错误:wso2/github4:0.9.10:GitClientError,消息:“存储库”类型上不存在字段“许可证”

下面显示的是我的代码:

任何帮助深表感谢!先感谢您!

0 投票
0 回答
200 浏览

arrays - ballerina - 检查数组中是否存在值

Ballerina 中是否有任何内置函数来检查数组中是否存在值?

我尝试了一个简单的函数,它遍历一个字符串数组并检查该值是否存在。

0 投票
1 回答
60 浏览

ballerina - Ballerina/gmail 包中消息资源中的原始属性

当我在ballerina/Gmail包的消息资源中使用'plainTextBodyPart'属性时,它会正确返回消息正文。但是如果我使用与上述相同资源的'raw'属性,它会返回一个空值。错误是什么我的代码?

0 投票
1 回答
68 浏览

ballerina - 我们如何从 HTTP 请求中解压 JSON 文件

[{"EmployeeID":1,"Name":"Alice","Age":20,"SSN":123456789}]

这是从 SQL 查询返回的 JSON 文件。我想从此 JSON 文件中提取名称

0 投票
1 回答
176 浏览

api - 如何通过 Ballerina 中的菜单驱动应用程序调用服务

我有一个文件main.bal,其中包含打印菜单并处理用户输入。gmail_service.bal文件包含hello能够发送电子邮件的服务。

主文件

gmail_service.bal

当用户输入“1”时如何调用gmail服务?

0 投票
2 回答
138 浏览

ballerina - 访问 Ballerina 中 SQL 选择查询返回的数据

我对芭蕾舞演员很陌生。在我的项目中,我想访问 SQL 选择查询返回的数据?

我想做的是,

但它不起作用并引发运行时错误。

0 投票
2 回答
222 浏览

ballerina - 将参数传递给 Ballerina 中的 sql 查询时出错

我正在开发一个简单的芭蕾舞女演员应用程序,它检索email给定名称(cntname)的。

运行程序时出现此错误。

错误:contacts_db_service:0.0.0/hello_service.bal:56:86:污染值传递给敏感参数“消息”

从 中返回的值extractName()(如下所示)被传递给cntname

在此处输入图像描述 *注意: split()应用于传递给的字符串值cntname。*

0 投票
2 回答
239 浏览

wso2 - 如何在芭蕾舞女演员中获取当前日期

有没有办法在芭蕾舞演员中获得当前日期?

0 投票
1 回答
160 浏览

ballerina - Ballerina Lang Package Build Failed

This issue raised when following the Ballerina Community Programme I tried to create calculator package and till build everthing nicely worked.

When execute ballerina build calculator command , below error pops at the terminal.

And the ballerina-internal.log reports this.