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
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -101,8 +101,6 @@ A description of all the available command line arguments that can be used are g
101
101
|\-\-skip-validate-import|Skip validating the imported data|false|None, this is compulsory if the operations specified requires database access|
102
102
|\-\-connection-socket|The mysql socket file path|/var/run/mysqld/mysqld.sock|
103
103
|\-\-varchar-limit|The value of varchar type, and the limit after which a string is considered a text and not a varchar|100|
104
-
|\-\-custom-date-patterns|[Custom patterns](#datetime) to identify arbitrary date formats|None|
105
-
|\-\-custom-datetime-patterns|[Custom patterns](#datetime) to identify arbitrary datetime formats| None|
106
104
|\-\-schema-infer-chunk-size|The chunk size to use when the schema fora CSV will be inferred parallelly. For example, a chunk size 100 means the CSV will be read 100 rows at a time and separate processes will be used to infer the schema for each 100-row chunk|100|
107
105
|\-\-worker-count|The number of workers, directly related to how many CSVs will be processed parallelly|10|
108
106
|\-\-db-worker-count|The number of database workers, lowering the value will lead to slow performance but lesser load on database, a higher value can lead to too many database connection errors.|15|
@@ -245,13 +243,14 @@ If a csv file contains date or datetime in some other format then they will be i
245
243
patterns we can import such data of arbitrary formats as date or datetime.
246
244
247
245
csv2sql uses the [Timex](https://github.com/bitwalker/timex) library to parse date/datetime.
248
-
In order to specify custom patterns for date or datetime use the `--custom-date-patterns` or `--custom-datetime-patterns` arguments
249
-
followed by a string having one or more patterns separated by `;`
246
+
You can specify multiple custom patterns for date or datetime as a string having one or more patterns separated by `;`
250
247
251
248
When using the Web UI for csv2sql enter these pattern strings in the config page under "Custom date patterns" or "Custom datetime patterns".
252
249
253
250
The patterns should be compatible with Timex directives specified [here](https://hexdocs.pm/timex/Timex.Format.DateTime.Formatters.Default.html#module-list-of-all-directives).
254
251
252
+
(Custom patterns are only supported when using the web ui and are not available in the cli version of the application)
253
+
255
254
#### Good to know/Caveats
256
255
257
256
* Fractional seconds or timezone information is not handled when importing datetime data.
@@ -262,9 +261,9 @@ The patterns should be compatible with Timex directives specified [here](https:/
262
261
263
262
To parse datetime like `11/14/2021 3:43:28 PM` a pattern like `{0M}/{0D}/{YYYY} {h12}:{m}:{s} {AM}` can be specified
0 commit comments