shared db at design- and runtime

This commit is contained in:
Robin de Silva Jayasinghe
2024-04-24 15:56:47 +02:00
parent 4179493ce7
commit 61d6c0d58f
7 changed files with 59 additions and 15 deletions

View File

@@ -1 +1,2 @@
using from './db/common';
using from './app/services';

View File

@@ -5,12 +5,10 @@
"@capire/bookstore": "*",
"@sap/cds": ">=5",
"@cap-js-community/odata-v2-adapter": "^1",
"express": "^4.17.1",
"@sap/xssec": "^3"
"express": "^4.17.1"
},
"devDependencies": {
"@cap-js/sqlite": "^1",
"@sap/cds-dk": "^7"
"@cap-js/sqlite": "^1"
},
"scripts": {
"start": "cds-serve",
@@ -40,6 +38,15 @@
"db": {
"kind": "sql"
},
"[multimodule]": {
"db": {
"kind": "sqlite",
"impl": "@cap-js/sqlite",
"credentials": {
"url": "../db.sqlite"
}
}
},
"db-ext": {
"[development]": {
"model": "db/sqlite"
@@ -47,8 +54,7 @@
"[production]": {
"model": "db/hana"
}
},
"auth": "xsuaa"
}
},
"hana": {
"deploy-format": "hdbtable"