Eve-of-Darkness / db-public

Vanilla database for Dawn of Light
19 stars 19 forks source link

Import from SQLite database #248

Closed NetDwarf closed 2 years ago

NetDwarf commented 2 years ago

Add check for file_path option in config.yml Extract import database logic into own interface/types (sqlProvider for mysql and sqlite) Sort json data by primary key to make it repeatable Rename source files to export.go and import.go respectively

NetDwarf commented 2 years ago

To make sure that the outcome didn't change, because of different sorting, I did this:

The check sum should be and was the same.

Regarding the testing of import option the testing was straight forward.

Just for sanity I also did change a single entry to see if it is mirrored in the import. (it was)