mirror of
https://github.com/correl/mtgsqlive.git
synced 2024-12-01 03:00:09 +00:00
readme
This commit is contained in:
parent
73fe5da15a
commit
bb9382c73f
1 changed files with 4 additions and 1 deletions
|
@ -12,15 +12,18 @@ The database starts as a copy of the MTGJSON source of AllSets-x.json, then we m
|
|||
|
||||
To turn your JSON file into a SQLite file:
|
||||
`./json_to_sql.py create_new_db db_location json_file_location`
|
||||
|
||||
Where:
|
||||
* create_new_db is 0 (no) or 1 (yes)
|
||||
* db_location is location where the database is OR where you want to store the newly created database
|
||||
* json_file_location is the location of the JSON file you want to import to your database
|
||||
|
||||
To turn your SQLite file into a JSON file:
|
||||
`./sql_to_json.py db_location output_file_location`
|
||||
`./sql_to_json.py db_location output_file_location sets_or_cards`
|
||||
|
||||
Where:
|
||||
* db_location is the location where the database is
|
||||
* output_file_location is where you want to store the newly created JSON file
|
||||
* sets_or_cards is "sets" (AllSets-x.json will be generated) or "cards" (AllCards-x.json will be generated)
|
||||
|
||||
You can test to make sure your initial JSON is the same as your output JSON via `testing_mac.sh`
|
Loading…
Reference in a new issue