You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# excel-to-postgres
2
+
2
3
Quickly export an Excel Workbook to a Postgres DB
3
4
4
5
# Installation
@@ -32,12 +33,14 @@ excelToPostgresDb({
32
33
33
34
Supports four options, all of which are optional:
34
35
35
-
**createDatabase* - _true | false_ (Defaults to false)
36
-
**createTables* - _true | false_ (Defaults to false)
37
-
**generatePrimaryKey* - _true | false_ (Defaults to false. Generates 'id' column to be used as a primary key. Cannot be used with 'useExistingPrimaryKeys' option)
38
-
**useExistingPrimaryKeys* - _true | false_ (Defaults to false. Supports multiple primary keys. Append '_pk' to the column name in the workbook that will be the primary key. Cannot be used with 'generatePrimaryKey' option)
36
+
-_createDatabase_ - _true | false_ (Defaults to false)
37
+
-_createTables_ - _true | false_ (Defaults to false)
38
+
-_dropTables_ - _true | false_ (Defaults to false. When creating table, drop the table if it already exists)
39
+
-_generatePrimaryKey_ - _true | false_ (Defaults to false. Generates 'id' column to be used as a primary key. Cannot be used with 'useExistingPrimaryKeys' option)
40
+
-_useExistingPrimaryKeys_ - _true | false_ (Defaults to false. Supports multiple primary keys. Append '\_pk' to the column name in the workbook that will be the primary key. Cannot be used with 'generatePrimaryKey' option)
41
+
39
42
# Testing
40
43
41
-
This package's tests are written using [Jest](https://jestjs.io/). To execute, run:
44
+
This package's tests are written using [Jest](https://jestjs.io/). To execute, run:
0 commit comments