After some time, a new version of the SQLDumpSplitter3 got released!
Along with some important fixes, it brings some nice new features:
- added the command line interface
- tracking USE statements and repeating them in the splitted files
- fixed a bug that the UTF8 BOM didn’t get recognized as whitespace and so the very first query was always seen as general query and not an INSERT for example
- fixed a bug caused by the standard library buffered reader where the Peek function influences the Read position and so single “/” where removed from the resulting SQL
The latter got fixed by an own re-implementation of a buffered reader of Go, which is open source now: Peek-A-Buf.
So head over to its page and grab your copy.