Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: don't add to existing DBs by default. (#2)
This tool is presently built around the idea that it translates one OBJ_DUMP file into one DB. It gets confusing if you were to run the tool twice with the same arguments. Prior to this commit it would in fact add the same contents twice and 2x the data without any clear indication that it was two separate imports. In this commit we add a `-force` flag that defaults to false. If given a `-db` path that already exists, but `-force` is not true, then an error is printed about the existing db and we abort. If `-force` is true, then we assume the user knows what they are doing and we add the file's rows to the existing DB.
- Loading branch information