@cap-js/sqlite
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -7,2 +7,19 @@ # Changelog | ||
## [1.6.0](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.5.1...sqlite-v1.6.0) (2024-03-22) | ||
### Added | ||
* forUpdate and forShareLock ([#148](https://github.com/cap-js/cds-dbs/issues/148)) ([99a1170](https://github.com/cap-js/cds-dbs/commit/99a1170e61de4fd0c505834c25a9c03fc34da85b)) | ||
* **hana:** drop prepared statements after end of transaction ([#537](https://github.com/cap-js/cds-dbs/issues/537)) ([b1f864e](https://github.com/cap-js/cds-dbs/commit/b1f864e0a3a0e5efacd803d3709379cab76d61cc)) | ||
### Fixed | ||
* **`sqlite`:** use keyword list from compiler ([#526](https://github.com/cap-js/cds-dbs/issues/526)) ([a227c61](https://github.com/cap-js/cds-dbs/commit/a227c61312ba9e7d6a54944c822d5de0bb2d3f3c)) | ||
### Changed | ||
* this package now requires `@cap-js/db-service >= v1.7.0` ([#545](https://github.com/cap-js/cds-dbs/issues/545)) ([2cec27d](https://github.com/cap-js/cds-dbs/commit/2cec27d91402804c3b2da25cc7169f0d81a7406a)) | ||
## [1.5.1](https://github.com/cap-js/cds-dbs/compare/sqlite-v1.5.0...sqlite-v1.5.1) (2024-02-16) | ||
@@ -9,0 +26,0 @@ |
@@ -8,2 +8,9 @@ const { SQLService } = require('@cap-js/db-service') | ||
const keywords = cds.compiler.to.sql.sqlite.keywords | ||
// keywords come as array | ||
const sqliteKeywords = keywords.reduce((prev, curr) => { | ||
prev[curr] = 1 | ||
return prev | ||
}, {}) | ||
class SQLiteService extends SQLService { | ||
@@ -175,2 +182,10 @@ init() { | ||
forUpdate() { | ||
return '' | ||
} | ||
forShareLock() { | ||
return '' | ||
} | ||
// Used for INSERT statements | ||
@@ -239,3 +254,3 @@ static InputConverters = { | ||
static ReservedWords = { ...super.ReservedWords, ...require('./ReservedWords.json') } | ||
static ReservedWords = { ...super.ReservedWords, ...sqliteKeywords } | ||
} | ||
@@ -242,0 +257,0 @@ |
{ | ||
"name": "@cap-js/sqlite", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "CDS database service for SQLite", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/cap-js/cds-dbs/tree/main/sqlite#cds-database-service-for-sqlite", | ||
"dependencies": { | ||
"@cap-js/db-service": "^1.6.0", | ||
"@cap-js/db-service": "^1.7.0", | ||
"better-sqlite3": "^9.3.0" | ||
@@ -36,0 +36,0 @@ }, |
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
29553
8
272
Updated@cap-js/db-service@^1.7.0