Open trvrb opened 6 years ago
Hmm, I disagree. Flora has the commands to create tables, clear tables etc (python scripts/run.py -h
). In my opinion, one should be appropriately warned if they're trying to push to a non-existent table, as it may be a typo or unintended.
But I do agree the error should be caught and a nice message printed telling one how to create the appropriate tables.
Okay. This makes sense to me. I didn't realize there was a command to create tables (I see it now in readme --- sorry). I would have this be a single command called something like initialize
that creates the lassa
db and its necessary strains
, etc.. tables.
Currently, running
python scripts/run.py --db lassa upload --filename ../sacra/output/lassa.json
when there is no existinglassa
database results in the following error:Just like directories, if a Rethink database doesn't exist. Flora should create it.
Also, even if
lassa
database exists, flora crashes if thelassa
database doesn't already havestrains
,samples
, etc... tables.