Skip to content

Commit

Permalink
deps: requires @sap/cds >= 8.2 (#789)
Browse files Browse the repository at this point in the history
Requires next release of @sap/cds with internal PR 4589 merged

---------

Co-authored-by: Johannes Vogel <johannes.vogel@sap.com>
Co-authored-by: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 3, 2024
1 parent 9b34314 commit 3bbde18
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
2 changes: 1 addition & 1 deletion hana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"peerDependencies": {
"@sap/hana-client": ">=2",
"@sap/cds": ">=7.6"
"@sap/cds": ">=8.2"
},
"peerDependenciesMeta": {
"@sap/hana-client": {
Expand Down
17 changes: 7 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions test/cds.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ typeMapping.cdsToSqlTypes.postgres = {
const cds = require('@sap/cds')
module.exports = cds

// Adding cds.hana types to cds.builtin.types
// REVISIT: Where should we put this?
const hana = cds.linked({
definitions: {
'cds.hana.SMALLDECIMAL': { type: 'cds.Decimal' },
'cds.hana.SMALLINT': { type: 'cds.Int16' },
'cds.hana.TINYINT': { type: 'cds.UInt8' },
'cds.hana.REAL': { type: 'cds.Double' },
'cds.hana.CHAR': { type: 'cds.String' },
'cds.hana.CLOB': { type: 'cds.String' },
'cds.hana.NCHAR': { type: 'cds.String' },
'cds.hana.BINARY': { type: 'cds.String' },
'cds.hana.ST_POINT': { type: 'cds.String' },
'cds.hana.ST_GEOMETRY': { type: 'cds.String' },
},
})
Object.assign(cds.builtin.types, hana.definitions)

const cdsTest = cds.test

let isolateCounter = 0
Expand Down

0 comments on commit 3bbde18

Please sign in to comment.