Skip to content

Commit 3f35347

Browse files
authored
Update README.md
1 parent 8644767 commit 3f35347

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Basic usage:
2727

2828
xml-to-postgres <config.yml> [data.xml]
2929

30-
So the YAML configuration file is a required argument. The XML input file can be passed in as the second argument or can be sent to stdin if omitted.
30+
So the YAML configuration file is a required argument. The XML input file can be passed in as the second argument or will be read from stdin if omitted.
3131

3232
Example invocation:
3333

@@ -41,6 +41,10 @@ Within a database transaction:
4141

4242
xml-to-postgres config.yml data.xml | psql <database> -c 'BEGIN' -c 'TRUNCATE <table>' -c '\copy <table> from stdin' -c 'COMMIT'
4343

44+
Read multiple files in one go:
45+
46+
cat *.xml | xml-to-postgres config.yml > data.dump
47+
4448
## Configuration
4549

4650
See [documentation for the configuration file](https://github.com/bartnv/xml-to-postgres/wiki/Configuration-options) in the wiki.

0 commit comments

Comments
 (0)