Add a setting for uploaded file format
authorKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 22:13:14 +0000 (16:13 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 22:13:14 +0000 (16:13 -0600)
examples/etc/pgwui.ini
examples/misc/development.ini

index ed610ec20d0f4300a4f71cac4fa9a41e740e43c3..f4e0f4d3b0e0f2730926f699f98e9d546c442ba9 100644 (file)
@@ -213,6 +213,7 @@ pgwui.dry_run = False
 #    literal_column_headings = off
 #    menu_label = upload -- Upload File Into Database
 #    trim = choice-yes
+#    file_format = csv
 #
 # literal_column_headings
 # Take uploaded column headings literally?
@@ -247,6 +248,13 @@ pgwui.dry_run = False
 #   choice-yes    Present a checkbox, default to "yes".
 #   choice-no     Present a checkbox, default to "no".
 #   no-never      Never transform data into NULL.
+#
+# file_format
+# The format of the uploaded file
+#
+# The available choices are:
+#   csv           The CSV format.
+#   tab           Tab separated values.
 
 
 # pgwui_bulk_upload
@@ -256,6 +264,7 @@ pgwui.dry_run = False
 #    menu_label = bulk_upload -- Upload Many Files Into PostgreSQL
 #    map_file = contents.yml
 #    trim = choice-yes
+#    file_format = csv
 #
 # literal_column_headings = no-never
 #   Take uploaded column headings literally?
@@ -303,6 +312,10 @@ pgwui.dry_run = False
 # null = choice-yes
 #   Insert NULL values.
 #   See pgwui_upload above for details.
+#
+# file_format = csv
+#   The format of the uploaded files.
+#   See pgwui_upload above for details.
 
 
 #
index 3d30e910bf8b28f9bffd6db2d6bacd5cf7a5b72c..dc0748b2e9643562c0208f4fa69ea38633a75067 100644 (file)
@@ -219,6 +219,7 @@ pgwui.validate_hmac = False
 #    menu_label = upload -- Upload File Into Database
 #    trim = choice-yes
 #    null = choice-yes
+#    file_format = csv
 #
 # literal_column_headings
 # Take uploaded column headings literally?
@@ -253,6 +254,13 @@ pgwui.validate_hmac = False
 #   choice-yes    Present a checkbox, default to "yes".
 #   choice-no     Present a checkbox, default to "no".
 #   no-never      Never transform data into NULL.
+#
+# file_format
+# The format of the uploaded file
+#
+# The available choices are:
+#   csv           The CSV format.
+#   tab           Tab separated values.
 
 
 # pgwui_bulk_upload
@@ -263,6 +271,7 @@ pgwui.validate_hmac = False
 #    map_file = contents.yml
 #    trim = choice-yes
 #    null = choice-yes
+#    file_format = csv
 #
 # literal_column_headings = no-never
 #   Take uploaded column headings literally?
@@ -310,6 +319,10 @@ pgwui.validate_hmac = False
 # null = choice-yes
 #   Insert NULL values.
 #   See pgwui_upload above for details.
+#
+# file_format = csv
+#   The format of the uploaded files.
+#   See pgwui_upload above for details.
 
 
 #