Skip to content

Conversation

@qmacro
Copy link
Collaborator

@qmacro qmacro commented Jan 15, 2026

Some tweaks to language specifics, a couple of additions and clarifications, and the removal of what seems to be an accidental repeat of a paragraph on the "in the neighbourhood" concept.

@qmacro qmacro requested a review from renejeglinsky as a code owner January 15, 2026 19:10
All `db/data/*.csv` and `srv/data/*.csv` files are automatically loaded, because they are located in a `data` folder next to `.cds` model sources.

Additionally, this _in-the-neighborhood-of-models_ technique enables reuse packages, which's main purpose is to provide initial data. Such packages get installed via `npm` or `mvn`, and hence their content will reside under `node_modules` folders, or Maven `target` folders. As long as they also provide models through `.cds` sources, their data will be found and loaded.
This is especially useful for remote service definitions imported with `cds import` (by default into `srv/external/`) so that data for such services can also be served when mocking.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This describes sth different than it did before, doesn't it? Is that on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My addition is intended as just that, an addition. But the deletion (of "Additionally, this ...") is also deliberate, as it occurs pretty much verbatim in the section that follows this, with its own heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants