Comparing version 4.8.0-rc.0 to 4.8.0
{ | ||
"name": "pg-sql2", | ||
"version": "4.8.0-rc.0", | ||
"version": "4.8.0", | ||
"description": "Generate safe Postgres-compliant SQL with tagged template literals", | ||
@@ -60,3 +60,3 @@ "main": "node8plus/index.js", | ||
}, | ||
"gitHead": "f9d4d21c67bc3af908dbf070190fe1a1230c8d1f" | ||
"gitHead": "9bd73ee7d20c059856af8e8d347e3711ba1b0d72" | ||
} |
@@ -43,3 +43,3 @@ # pg-sql2 | ||
// sql.identifier safely escapes arguments and joins them with dots | ||
fields.map((fieldName) => sql.identifier(tableName, fieldName)), | ||
fields.map(fieldName => sql.identifier(tableName, fieldName)), | ||
", " | ||
@@ -123,3 +123,3 @@ ); | ||
```js | ||
const arrayOfSqlFields = ["a", "b", "c", "d"].map((n) => sql.identifier(n)); | ||
const arrayOfSqlFields = ["a", "b", "c", "d"].map(n => sql.identifier(n)); | ||
sql.query`select ${sql.join(arrayOfSqlFields, ", ")}`; // -> select "a", "b", "c", "d" | ||
@@ -126,0 +126,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
28718