theOGognf / finagg

A Python package for aggregating and normalizing historical data from popular and free financial APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`recreate-tables` install options

theOGognf opened this issue · comments

Currently, the default is to recreate tables whenever an install command or method is called by dropping and then creating the tables using a subpackage's SQL metadata. This isn't ideal in that it wipes whatever data was already installed, so users have to keep reinstalling the same data as before if they want it.

Instead, installation commands should be additive in that they don't default to dropping tables and instead attempt to install new data without dropping, not losing whatever was previously installed. There should still be an option to recreate tables for all install commands in case a user has very limited storage to work with or doesn't care about previous data.

Maybe default to creating tables on the first installation as well. This'll just require a check if a table exists and then defaulting to recreate-tables=True if they don't

Closed by #39