@cap-js/postgres 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@
4
4
  - The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
5
  - This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## Version 1.0.1 - 2023-07-03
8
+
9
+ ### Added
10
+
11
+ - `pg` profile as mentioned in documentation
12
+
13
+ ### Changed
14
+
15
+ - Updated minimum required version of `@cap-js/db-service`
7
16
 
8
17
  ## Version 1.0.0 - 2023-06-23
9
18
 
package/lib/func.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const StandardFunctions = {
2
2
  countdistinct: x => `count(distinct ${x || '*'})`,
3
- average: x => `avg(${x})`,
4
3
  contains: (...args) => `(coalesce(strpos(${args}),0) > 0)`,
5
4
  indexof: (x, y) => `strpos(${x},${y}) - 1`, // sqlite instr is 1 indexed
6
5
  startswith: (x, y) => `strpos(${x},${y}) = 1`, // sqlite instr is 1 indexed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/postgres",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CDS database service for Postgres",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "test": "npm run setup && jest --silent"
25
25
  },
26
26
  "dependencies": {
27
- "@cap-js/db-service": "^1",
27
+ "@cap-js/db-service": "^1.0.1",
28
28
  "pg": "^8"
29
29
  },
30
30
  "peerDependencies": {
@@ -36,6 +36,16 @@
36
36
  "sql": {
37
37
  "[production]": {
38
38
  "kind": "postgres"
39
+ },
40
+ "[pg!]": {
41
+ "kind": "postgres",
42
+ "credentials": {
43
+ "host": "localhost",
44
+ "port": 5432,
45
+ "user": "postgres",
46
+ "password": "postgres",
47
+ "database": "postgres"
48
+ }
39
49
  }
40
50
  },
41
51
  "postgres": {