shared db at design- and runtime
This commit is contained in:
@@ -31,8 +31,15 @@
|
|||||||
"kind": "enterprise-messaging"
|
"kind": "enterprise-messaging"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"db": {
|
"db": { "kind": "sql" },
|
||||||
"kind": "sql"
|
"[multimodule]": {
|
||||||
|
"db": {
|
||||||
|
"kind": "sqlite",
|
||||||
|
"impl": "@cap-js/sqlite",
|
||||||
|
"credentials": {
|
||||||
|
"url": "../db.sqlite"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"log": {
|
"log": {
|
||||||
|
|||||||
5
db/sqlite/index.cds
Normal file
5
db/sqlite/index.cds
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
using from '@capire/bookstore';
|
||||||
|
using from '@capire/common';
|
||||||
|
using from '@capire/orders';
|
||||||
|
using from '@capire/reviews';
|
||||||
|
using from '@capire/fiori';
|
||||||
@@ -1 +1,2 @@
|
|||||||
using from './db/common';
|
using from './db/common';
|
||||||
|
using from './app/services';
|
||||||
@@ -5,12 +5,10 @@
|
|||||||
"@capire/bookstore": "*",
|
"@capire/bookstore": "*",
|
||||||
"@sap/cds": ">=5",
|
"@sap/cds": ">=5",
|
||||||
"@cap-js-community/odata-v2-adapter": "^1",
|
"@cap-js-community/odata-v2-adapter": "^1",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1"
|
||||||
"@sap/xssec": "^3"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cap-js/sqlite": "^1",
|
"@cap-js/sqlite": "^1"
|
||||||
"@sap/cds-dk": "^7"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cds-serve",
|
"start": "cds-serve",
|
||||||
@@ -40,6 +38,15 @@
|
|||||||
"db": {
|
"db": {
|
||||||
"kind": "sql"
|
"kind": "sql"
|
||||||
},
|
},
|
||||||
|
"[multimodule]": {
|
||||||
|
"db": {
|
||||||
|
"kind": "sqlite",
|
||||||
|
"impl": "@cap-js/sqlite",
|
||||||
|
"credentials": {
|
||||||
|
"url": "../db.sqlite"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"db-ext": {
|
"db-ext": {
|
||||||
"[development]": {
|
"[development]": {
|
||||||
"model": "db/sqlite"
|
"model": "db/sqlite"
|
||||||
@@ -47,8 +54,7 @@
|
|||||||
"[production]": {
|
"[production]": {
|
||||||
"model": "db/hana"
|
"model": "db/hana"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"auth": "xsuaa"
|
|
||||||
},
|
},
|
||||||
"hana": {
|
"hana": {
|
||||||
"deploy-format": "hdbtable"
|
"deploy-format": "hdbtable"
|
||||||
|
|||||||
@@ -3,15 +3,20 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capire/common": "*",
|
"@capire/common": "*",
|
||||||
"@sap/cds": ">=5",
|
"@sap/cds": ">=5"
|
||||||
"@sap/xssec": "^3"
|
|
||||||
},
|
},
|
||||||
"cds": {
|
"cds": {
|
||||||
"requires": {
|
"requires": {
|
||||||
"auth": "xsuaa"
|
"db": { "kind": "sql" },
|
||||||
|
"[multimodule]": {
|
||||||
|
"db": {
|
||||||
|
"kind": "sqlite",
|
||||||
|
"impl": "@cap-js/sqlite",
|
||||||
|
"credentials": {
|
||||||
|
"url": "../db.sqlite"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@sap/cds-dk": "^7"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -53,6 +53,16 @@
|
|||||||
"parallel": true,
|
"parallel": true,
|
||||||
"timeout": 6666
|
"timeout": 6666
|
||||||
},
|
},
|
||||||
|
"cds": {
|
||||||
|
"requires": {
|
||||||
|
"db": {
|
||||||
|
"kind": "sql",
|
||||||
|
"[development]": {
|
||||||
|
"model": "db/sqlite"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,17 @@
|
|||||||
"[hybrid]": { "kind": "enterprise-messaging-shared" },
|
"[hybrid]": { "kind": "enterprise-messaging-shared" },
|
||||||
"[production]": { "kind": "enterprise-messaging" }
|
"[production]": { "kind": "enterprise-messaging" }
|
||||||
},
|
},
|
||||||
"db": { "kind": "sql" }
|
|
||||||
|
"db": { "kind": "sql" },
|
||||||
|
"[multimodule]": {
|
||||||
|
"db": {
|
||||||
|
"kind": "sqlite",
|
||||||
|
"impl": "@cap-js/sqlite",
|
||||||
|
"credentials": {
|
||||||
|
"url": "../db.sqlite"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user