Add a "null" setting to control upload of NULL values
authorKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 21:34:12 +0000 (15:34 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 21:34:12 +0000 (15:34 -0600)
examples/etc/pgwui.ini
examples/misc/development.ini

index b1740141d983d818c5f396ccb1c1e6cd22b0ec5b..ed610ec20d0f4300a4f71cac4fa9a41e740e43c3 100644 (file)
@@ -237,6 +237,16 @@ pgwui.dry_run = False
 #   choice-yes    Present a checkbox, default to "yes, trim".
 #   choice-no     Present a checkbox, default to "no, don't trim".
 #   no-never      Never trim.
+#
+# null
+# Whether or not some uploaded data elements should be inserted as NULL
+# values.
+#
+# The available choices are:
+#   yes-always    Always transform some data into NULL.
+#   choice-yes    Present a checkbox, default to "yes".
+#   choice-no     Present a checkbox, default to "no".
+#   no-never      Never transform data into NULL.
 
 
 # pgwui_bulk_upload
@@ -289,6 +299,10 @@ pgwui.dry_run = False
 # trim = choice-yes
 #   Remove leading and trailing whitespace.
 #   See pgwui_upload above for details.
+#
+# null = choice-yes
+#   Insert NULL values.
+#   See pgwui_upload above for details.
 
 
 #
index 684a49fecc7f38218ff5253c7fbe063b8c3d035d..3d30e910bf8b28f9bffd6db2d6bacd5cf7a5b72c 100644 (file)
@@ -218,6 +218,7 @@ pgwui.validate_hmac = False
 #    literal_column_headings = no-never
 #    menu_label = upload -- Upload File Into Database
 #    trim = choice-yes
+#    null = choice-yes
 #
 # literal_column_headings
 # Take uploaded column headings literally?
@@ -242,6 +243,16 @@ pgwui.validate_hmac = False
 #   choice-yes    Present a checkbox, default to "yes, trim".
 #   choice-no     Present a checkbox, default to "no, don't trim".
 #   no-never      Never trim.
+#
+# null
+# Whether or not some uploaded data elements should be inserted as NULL
+# values.
+#
+# The available choices are:
+#   yes-always    Always transform some data into NULL.
+#   choice-yes    Present a checkbox, default to "yes".
+#   choice-no     Present a checkbox, default to "no".
+#   no-never      Never transform data into NULL.
 
 
 # pgwui_bulk_upload
@@ -251,6 +262,7 @@ pgwui.validate_hmac = False
 #    menu_label = bulk_upload -- Upload Many Files Into PostgreSQL
 #    map_file = contents.yml
 #    trim = choice-yes
+#    null = choice-yes
 #
 # literal_column_headings = no-never
 #   Take uploaded column headings literally?
@@ -294,6 +306,10 @@ pgwui.validate_hmac = False
 # trim = choice-yes
 #   Remove leading and trailing whitespace.
 #   See pgwui_upload above for details.
+#
+# null = choice-yes
+#   Insert NULL values.
+#   See pgwui_upload above for details.
 
 
 #