Create service scripts containing entity definition for code insight in WebStorm or other IDE work well.
Usage from a command line:
ubcli createCodeInsightHelper -u admin -p admin -m UBS -cfg myConfig.json
Usage from a code:
const createCodeInsightHelper = require('@unitybase/ubcli/createCodeInsightHelper')
var options = {
host: "http://localhost:888",
user: "admin",
pwd: "admin",
model: 'UBS'
}
createCodeInsightHelper(options)
Methods
# namedCollection2Array (namedCollection: object) inner
Convert named collection - {name1: {}, name2: {}} to array -> [{name: name1, ...}, ...] Will mutate original!
Arguments:
namedCollection
: object