Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit fa854a2

Browse files
chgeodanjoa
authored andcommitted
Add hint on db-ext datasource to code tour
Signed-off-by: Christian Georgi <christian.georgi@sap.com>
1 parent 40b6ace commit fa854a2

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.tours/db-native.tour

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,29 @@
6868
},
6969
{
7070
"file": "fiori/package.json",
71-
"description": "#### Configuration\n\nThe `cds` section in `package.json` is a place to configure which of the `db/sqlite` and `db/hana` folders are used for which database.\nWe use [Node.js profiles](https://cap.cloud.sap/docs/node.js/cds-env#profiles) to separate the configuration.\nIn the `development` profile, you can see that `db/sqlite` is set as the model, while the `db/hana` folder is configured in the `production` profile.",
72-
"line": 12,
71+
"description": "#### Configuration\n\nThe `cds.requires` section in `package.json` is a place to configure which of the `db/sqlite` and `db/hana` folders are used for which database.\n\nWe use [Node.js profiles](https://cap.cloud.sap/docs/node.js/cds-env#profiles) to separate the configuration.\nIn the `development` profile, you can see that `db/sqlite` is set as the model, while the `db/hana` folder is configured in the `production` profile. `db-ext` is a pseudo datasource, its name doesn't matter.\n\nSee [`cds.resolve`](https://cap.cloud.sap/docs/node.js/cds-compile#cds-resolve) to learn more about how models are found.",
72+
"selection": {
73+
"start": {
74+
"line": 41,
75+
"character": 1
76+
},
77+
"end": {
78+
"line": 48,
79+
"character": 1
80+
}
81+
},
7382
"title": "Configuration"
7483
},
7584
{
7685
"file": "fiori/package.json",
7786
"description": "#### Run with SQLite\n\nTo run with `development` and an in-memory SQLite database, you don't need to do anything special, because it's activated by default. Just run:\n\n>> cds watch fiori\n\nThen open [http://localhost:4004/admin/Authors](http://localhost:4004/admin/Authors) to see the two new fields.\n",
78-
"line": 35,
87+
"line": 43,
7988
"title": "Run with SQLite"
8089
},
8190
{
8291
"file": "fiori/package.json",
8392
"description": "#### Deploy the CDS Model to SAP HANA\n\nTo 'activate' SAP HANA through the `production` profile, you can use the global `--production` flag:\n\n>> cd fiori; cds deploy --to hana --production\n\n[Learn more about SAP HANA deployment](https://cap.cloud.sap/docs/guides/databases#get-hana)\n\n#### Run the Application\n\n>> cd fiori; cds watch --production\n\nThe service on [http://localhost:4004/admin/Authors](http://localhost:4004/admin/Authors) is the same as before, but this time the `Authors` entity is backed by a database view with an SAP HANA function.\n\n#### More\n\nIf you don't see data, you can add some in the next step.",
84-
"line": 38,
93+
"line": 46,
8594
"title": "Run with SAP HANA"
8695
},
8796
{

0 commit comments

Comments
 (0)