本文介绍了psql在结果数组中返回“匿名”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在节点服务器上运行以下psql:
I'm running the following psql on my node server:
SELECT json_data.key AS id, json_data.value::int AS version
FROM players.settings, json_each_text(players.settings.value) AS json_data
WHERE name = $1 AND json_data.value::int > 0;
返回的结果包括前面的字符串 anonymous
每个结果对象:
The results returned include the string anonymous
before each result object:
[ anonymous { id: '1ab56bd6-ef7d-4755-92d5-1b0cf7beb4b7', version: 1 },
anonymous { id: '4ea3d884-d2a6-4074-a094-a45f6003e6d4', version: 1 } ]
我在这里想念什么?我以前从未见过这个匿名字符串,并且希望摆脱它。
What am I missing here? I've never seen this anonymous string before and would like to get rid of it.
推荐答案
据我所知,您可以
请参阅:
这只是一个节点。 js 6的新功能,可在使用匿名类创建对象时向控制台报告。
It's just a Node.js 6 new feature to report into the console when the object was created using an anonymous class.
您可以放心地忽略它;)
You can safely ignore it ;)
这篇关于psql在结果数组中返回“匿名”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!