mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Document FILENAMES MATCHING option.
This commit is contained in:
parent
36805afc64
commit
a0518f2e98
19
pgloader.1
19
pgloader.1
@ -454,6 +454,25 @@ The data is found after the end of the parsed commands\. Any number of empty lin
|
||||
.IP
|
||||
Reads the data from the standard input stream\.
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fIFILENAMES MATCHING\fR
|
||||
.
|
||||
.IP
|
||||
The whole \fImatching\fR clause must follow the following rule:
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
[ ALL FILENAMES | [ FIRST ] FILENAME ] MATCHING ~<>
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.IP
|
||||
The \fImatching\fR clause applies given \fIregular expression\fR (see above for exact syntax, several options can be used here) to filenames\. It\'s then possible to load data from only the first match of all of them\.
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.IP
|
||||
|
||||
@ -400,6 +400,17 @@ The `csv` format command accepts the following clauses and options:
|
||||
|
||||
Reads the data from the standard input stream.
|
||||
|
||||
- *FILENAMES MATCHING*
|
||||
|
||||
The whole *matching* clause must follow the following rule:
|
||||
|
||||
[ ALL FILENAMES | [ FIRST ] FILENAME ] MATCHING ~<>
|
||||
|
||||
The *matching* clause applies given *regular expression* (see above
|
||||
for exact syntax, several options can be used here) to filenames.
|
||||
It's then possible to load data from only the first match of all of
|
||||
them.
|
||||
|
||||
The *FROM* option also supports an optional comma separated list of
|
||||
*field* names describing what is expected in the `CSV` data file.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user