@sap/cds-hana
Advanced tools
Comparing version 1.18.1 to 1.21.0
@@ -9,2 +9,32 @@ # Changelog | ||
## Version 1.21.0 - 2019-12-10 | ||
### Changed | ||
- Updated version of @sap/cds-sql to 1.21.0 | ||
## Version 1.20.1 - 2019-11-29 | ||
### Changed | ||
- Updated version of @sap/cds-sql to 1.20.1 | ||
## Version 1.20.0 - 2019-11-19 | ||
### Added | ||
- Method to set session context | ||
## Version 1.19.1 - 2019-10-30 | ||
### Changed | ||
- Updated version of @sap/cds-sql to 1.19.1 | ||
## Version 1.19.0 - 2019-10-29 | ||
### Removed | ||
- `npm-shrinkwrap.json` | ||
## Version 1.18.1 - 2019-10-16 | ||
@@ -11,0 +41,0 @@ |
@@ -355,3 +355,3 @@ const hanaClient = require('./hanaClient') | ||
return cdsSql.composition | ||
.selectDeepUpdateData(this._csn && this._csn.definitions, cqn, this._execute.bind(this)) | ||
.selectDeepUpdateData(this._csn && this._csn.definitions, cqn, this._execute.bind(this), this._context) | ||
.then(selectData => { | ||
@@ -508,7 +508,17 @@ return this.processNestedCQNs( | ||
this.setSessionContext('LOCALE', this._locale) | ||
} | ||
/** | ||
* Sets a session context on the database | ||
* | ||
* @param contextName name of the session context | ||
* @param value value of the session context | ||
*/ | ||
setSessionContext (contextName, value) { | ||
if (this._dbc._connection) { | ||
// Works, but bad practise to access an internal scope | ||
this._dbc._connection.getClientInfo().setProperty('LOCALE', this._locale) | ||
this._dbc._connection.getClientInfo().setProperty(contextName, value) | ||
} else { | ||
this._dbc.setClientInfo('LOCALE', this._locale) | ||
this._dbc.setClientInfo(contextName, value) | ||
} | ||
@@ -527,8 +537,3 @@ } | ||
if (this._dbc._connection) { | ||
// Works, but bad practise to access an internal scope | ||
this._dbc._connection.getClientInfo().setProperty('XS_APPLICATIONUSER', this._user) | ||
} else { | ||
this._dbc.setClientInfo('XS_APPLICATIONUSER', this._user) | ||
} | ||
this.setSessionContext('XS_APPLICATIONUSER', this._user) | ||
} | ||
@@ -535,0 +540,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"bundleDependencies":false,"dependencies":{"@sap/cds-sql":"1.18.1"},"deprecated":false,"description":"Driver package for access to hana database, including setting up the client, configuring all the necessary options to initiate the connection and handling database specifics so that they can be processed on our end.","engines":{"node":">= 8.9.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{lib,test}/**/*.js":["prettier-standard","standard --fix","git add"]},"main":"lib/index.js","name":"@sap/cds-hana","version":"1.18.1","license":"SEE LICENSE IN developer-license-3.1.txt"} | ||
{"bundleDependencies":false,"dependencies":{"@sap/cds-sql":"1.21.0"},"deprecated":false,"description":"Driver package for access to hana database, including setting up the client, configuring all the necessary options to initiate the connection and handling database specifics so that they can be processed on our end.","engines":{"node":">= 8.9.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{lib,test}/**/*.js":["prettier-standard","standard --fix","git add"]},"main":"lib/index.js","name":"@sap/cds-hana","version":"1.21.0","license":"SEE LICENSE IN developer-license-3.1.txt"} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
Found 1 instance in 1 package
121403
0
19
1043
+ Added@babel/runtime@7.25.7(transitive)
+ Added@sap/cds-foss@1.1.0(transitive)
+ Added@sap/cds-sql@1.21.0(transitive)
+ Addedfs-extra@7.0.1(transitive)
+ Addedgeneric-pool@3.7.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedyaml@1.5.1(transitive)
- Removed@sap/cds-sql@1.18.1(transitive)
Updated@sap/cds-sql@1.21.0