MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / getAllDataSourceFiles

Function getAllDataSourceFiles

packages/cli/lib/model-discoverer.js:105–107  ·  view source on GitHub ↗
(dir = DEFAULT_DATASOURCE_DIRECTORY)

Source from the content-addressed store, hash-verified

103};
104
105function getAllDataSourceFiles(dir = DEFAULT_DATASOURCE_DIRECTORY) {
106 return fs.readdirSync(dir).filter(s => s.endsWith('.datasource.js'));
107}
108
109module.exports = {
110 getAllDataSourceFiles,

Callers 1

loadDataSourceByNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected