rippinrobr / baseball-stats-db

Tools to help create and maintain databases based on the Baseball Databank Files
Apache License 2.0
10 stars 2 forks source link

Create a friendlier error when schema isn't present. #32

Closed rippinrobr closed 5 years ago

rippinrobr commented 6 years ago

If someone runs the db_loader without running the schema scripts first they receive an error similar to this:

2018/06/10 04:48:21 Insert error: no such table: people
[followed by 19477 more "Insert error: no such table: people" errors]

I need to write out an error like the ones the rust compiler creates, something that prints out the error above but followed by 'Have you loaded the schema file for your database? Schemas can be found in the 'schemas directory' or in the release files.

rippinrobr commented 5 years ago

This will be resolved when the new project structure is in place. This will be backups, schemes, backups and docker files with no code