Skip to content

Commit b389b1d

Browse files
authored
Add a README
1 parent ae946a0 commit b389b1d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# xml-to-postgres
2+
A fast tool to convert XML files with repeating element sets into PostgreSQL dump format.
3+
4+
To use this tool you need to create a simple YAML configuration file that describes how to turn repeating element sets in an XML document into row-based data for importing into PostgreSQL. For efficiency, the data is output in PostgreSQL dump format, suitable for importing with the COPY command. This tool processes one row at a time and does not need to keep the whole XML DOM in memory, so it has a very low memory footprint and can be used to convert datasets much larger than the available RAM. The tool can split out further repeating fields into extra tables with a one-to-many relationship (with foreign key) to the main table.
5+
6+
## Features
7+
8+
* XPath-like selection of column values
9+
* Very low runtime memory requirements
10+
* Read column values from XML attributes
11+
* Apply search-and-replace on values
12+
* Filter the output with regex
13+
* Write extra tables with a foreign key to the main table

0 commit comments

Comments
 (0)