Add a "trim" key to the bulk upload map
authorKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 23:31:50 +0000 (17:31 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Sat, 23 Jan 2021 23:31:50 +0000 (17:31 -0600)
examples/etc/pgwui.ini
examples/misc/development.ini

index f4e0f4d3b0e0f2730926f699f98e9d546c442ba9..e4d900e51510d19dab37802ea2034a23bbe69b47 100644 (file)
@@ -295,11 +295,16 @@ pgwui.dry_run = False
 #     - file_map:
 #         file: baz.csv
 #         relation: meta.baz_table
+#         trim: false
 #
 #   The files within each directory are uploaded in the order in which
 #   they are listed in the map file.  The directories in the zip file are
 #   processed in alphabetical order.
 #
+#   The "trim:" key in the file_map map controls whether or not whitespace
+#   is removed from data values.  "trim:" takes a boolean value.  It
+#   defaults to true.  It overrides other choices in the GUI interface.
+#
 #   Top level tags, other than the `map_list` tag, are ignored.
 #
 #   It is recommended to enclose file names which contain spaces, or begin
index dc0748b2e9643562c0208f4fa69ea38633a75067..b122e05698b3137f2098e737862fb0cf7d6e3dd3 100644 (file)
@@ -302,11 +302,17 @@ pgwui.validate_hmac = False
 #     - file_map:
 #         file: baz.csv
 #         relation: meta.baz_table
+#         trim: false
+#
 #
 #   The files within each directory are uploaded in the order in which
 #   they are listed in the map file.  The directories in the zip file are
 #   processed in alphabetical order.
 #
+#   The "trim:" key in the file_map map controls whether or not whitespace
+#   is removed from data values.  "trim:" takes a boolean value.  It
+#   defaults to true.  It overrides other choices in the GUI interface.
+#
 #   Top level tags, other than the `map_list` tag, are ignored.
 #
 #   It is recommended to enclose file names which contain spaces, or begin