From 45ccbe091c18efe9ee1b57c067f53b48b11e9d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 23 Apr 2024 21:07:13 +0200 Subject: [PATCH] Added readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..aefd0a2 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Usage + +pgsplit takes a PostgreSQL dump with multiple databases through STDIN and extracts them to the current directory, named with the database name and an .sql extension. + +`pgsplit -list` prints the databases contained in the SQL dump. + +`pgsplit` extracts all databases. + +`pgsplit -include-all -except foo -except bar` extracts all databases except for foo and bar. +`pgsplit -exclude-all -except foo -except bar` extracts only databases foo and bar.