@voxpelli/pg-utils 1.1.2 → 1.2.0

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.
@@ -72,7 +72,7 @@ export async function csvFromFolderToDb (connection, path, tablesWithDependencie
72
72
 
73
73
  for (const file of files) {
74
74
  const name = pathModule.basename(file, '.csv');
75
- const dbCopy = client.query(copyFrom(`COPY ${name} FROM STDIN DELIMITER ',' CSV HEADER`));
75
+ const dbCopy = client.query(copyFrom(`COPY ${name} FROM STDIN WITH (FORMAT csv, HEADER MATCH)`));
76
76
 
77
77
  // eslint-disable-next-line security/detect-non-literal-fs-filename
78
78
  const csvContent = createReadStream(file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxpelli/pg-utils",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": " My personal database utils / helpers for Postgres",
5
5
  "homepage": "http://github.com/voxpelli/pg-utils",
6
6
  "repository": {