Description
Just opening a thread on the JSON/Database design for feedback, comments, and ideas.
Just opening a thread on the JSON/Database design for feedback, comments, and ideas.
This is just in regards to the back end, so setting the UI aside for the moment.
Eos doesn't use a database, it grabs all it's data from JSON files and creates a cache file out of them.
Specifically, these are the ones it cares about:
def get_evetypes(self):
return self.__fetch_table('evetypes')
def get_evegroups(self):
return self.__fetch_table('evegroups')
def get_dgmattribs(self):
return self.__fetch_table('dgmattribs')
def get_dgmtypeattribs(self):
return self.__fetch_table('dgmtypeattribs')
def get_dgmeffects(self):
return self.__fetch_table('dgmeffects')
def get_dgmtypeeffects(self):
return self.__fetch_table('dgmtypeeffects')
def get_dgmexpressions(self):
return self.__fetch_table('dgmexpressions')
Since we are already going to be including JSON files for Eos (I'm assuming we're not going to spend the time to rewrite that), what else can we leverage those JSON files for?
Do we just want to just use JSONs for the back end, and skip using SQL for static data entirely?
(This would certainly make updating the data much easier than trying to update an existing SQL database.)
Right now for the back end we have the following modules:
Eos
pyCrest
sqlAlchemy
Flask
Since Flask can read the JSONs directly (and load them into memory), I'm not sure what duplicating that data into SQL would buy us.