pg-promise
Advanced tools
Comparing version 10.8.0 to 10.8.1
{ | ||
"name": "pg-promise", | ||
"version": "10.8.0", | ||
"version": "10.8.1", | ||
"description": "PostgreSQL interface for Node.js", | ||
@@ -49,6 +49,6 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/node": "14.14.8", | ||
"@types/node": "14.14.10", | ||
"bluebird": "3.7.2", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.13.0", | ||
"eslint": "7.14.0", | ||
"istanbul": "0.4.5", | ||
@@ -58,6 +58,6 @@ "jasmine-node": "3.0.0", | ||
"JSONStream": "1.3.5", | ||
"pg-query-stream": "3.4.2", | ||
"pg-query-stream": "4.0.0", | ||
"tslint": "6.1.3", | ||
"typescript": "4.0.5" | ||
"typescript": "4.1.2" | ||
} | ||
} |
@@ -359,3 +359,5 @@ pg-promise | ||
An alias is a lighter/simpler version of [SQL Names], which only supports a text string, and is used via the `:alias` filter. | ||
An alias is a simpler, less-strict version of `:name` filter, which only supports a text string, i.e. | ||
it does not support `*`, `this`, array or object as inputs, like `:name` does. However, it supports other | ||
popular cases that are less strict, but cover at least 99% of all use cases, as shown below. | ||
@@ -369,7 +371,8 @@ - It will skip adding surrounding double quotes when the name is a same-case single word: | ||
- It will automatically split the name into multiple SQL names when encountering `.`: | ||
- It will automatically split the name into multiple SQL names when encountering `.`, and then | ||
escape each part separately, thus supporting auto-composite SQL names: | ||
```js | ||
await db.any('SELECT * FROM $1:alias', ['schema.table']); | ||
//=> SELECT * FROM schema.table | ||
await db.any('SELECT * FROM $1:alias', ['schemaName.table']); | ||
//=> SELECT * FROM "schemaName".table | ||
``` | ||
@@ -376,0 +379,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
420240
1132