You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 years ago | |
---|---|---|
Worldcup | 9 years ago | |
css | 9 years ago | |
js | 9 years ago | |
res | 9 years ago | |
.gitignore | 9 years ago | |
Datafile | 9 years ago | |
Gemfile | 9 years ago | |
Gemfile.lock | 9 years ago | |
index.html | 9 years ago | |
package.json | 9 years ago | |
readme.md | 9 years ago | |
webpack.config.js | 9 years ago | |
worldcup.db | 9 years ago | |
worldcup.hs | 9 years ago | |
worldcup.js | 9 years ago | |
worldcup.json | 9 years ago |
readme.md
Data structure
A single JSON file is downloaded to provide the data set. Its structure is as follows:
{
'countries': {
countryId: { countryContinentId, countryName }
...
},
'rounds': {
roundId: roundName,
},
'tourneys': {
YYYY: {
'games': [{ playAt, roundId, team1Id, team2Id, score1, score1et, score1p, score2, score2et, score2p }, ...],
'teams': [{ countryId, goalsAgainst, goalsFor, population, teamId}, ...]
},
...
}
}
Building the SQLite DB
Run sportdb build
in the directory that has Datafile
.
Correspondence on the topic can be found at this google groups topic.
Troubleshooting: Using a Gemfile
Sportdb only builds with older versions of ActiveRecord. Use a Gemfile as outlined here to lock the correct version.