Skip to content

Commit eb4108c

Browse files
author
Frederic de Zorzi
committed
doc
1 parent 1fa2969 commit eb4108c

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
target
2+
/README.html

LICENCE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This program is free software: you can redistribute it and/or modify it under
2+
the terms of the GNU General Public License as published by the Free Software
3+
Foundation, either version 3 of the License, or (at your option) any later
4+
version.
5+
6+
This program is distributed in the hope that it will be useful, but WITHOUT ANY
7+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
9+
10+
You should have received a copy of the GNU General Public License along with
11+
this program. If not, see <http://www.gnu.org/licenses/>

README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PG-Inserts : Get INSERT commands from PostgreSQL dump with COPY statements
2+
==========================================================================
3+
4+
PostgreSQL's pg_dump with COPY statements is the most effective way to dump your
5+
database, but is it difficult to grep in to recover specific data.
6+
7+
8+
Installation
9+
------------
10+
11+
This tool is written in `Rust <https://www.rust-lang.org/>`_ language. Install
12+
it, then type::
13+
14+
cargo install
15+
16+
17+
Usage
18+
-----
19+
20+
Just pipe dump output to pg-inserts::
21+
22+
cat dump.sql | pg-inserts
23+
24+
If the dump file is a binary archive, use pg_restore::
25+
26+
pg_restore dump.db | pg-inserts
27+
28+
29+
Notice
30+
------
31+
32+
A Python version is also provided (7.5 times slower than Rust version).

0 commit comments

Comments
 (0)