datasucker / netrunner-datasucker

MIT License
20 stars 7 forks source link

Allow for getting the data from local SQLite Database #1

Open sebastian-zarzycki opened 9 years ago

sebastian-zarzycki commented 9 years ago

CardgameDB JSON works for now, but it doesn't have to be like that in the future - it could be restricted, etc. By serving the data from local SQLite file, it would be truly independent. The initial database file could just prepare the schema and there could be an additional mapping (same as it works now for mapping from that JSON) from the DB. Obviously, the database would have to be populated manually on local servers.

ericboivin commented 9 years ago

HTML5 file storage would be great for the JSON. We could maybe find a way to store the whole images client-size in SQLLite? We can definitely store the whole metadata JSON in local storage, but for images I'm not sure yet. I can maybe work on that tomorrow to see the feasability of it.

sebastian-zarzycki commented 9 years ago

What I meant is that SQLite would power the API, instead of that CardgameDB url. JSON would be only the output. Whether it would be images too, not sure, perhaps not the best suited storage for this, but I suppose we can safely rely on CardgameDB sharing these images for some time - just links to cardgamedb will be probably fine for now

datasucker commented 9 years ago

This repo contains only a Parse.com Datasucker at the moment. It's in our interest to develop multiple types of Datasuckers that can run on various architectures w/ various backends. We definitely could make a version that serves up a SQLite file. That would likely not run on Parse though.

I know there are a few versions popping up. I'm sure one of them will offer this.