Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/traxys/mtg_db
A database to aid the management of your mtg collection
https://github.com/traxys/mtg_db
Last synced: 9 days ago
JSON representation
A database to aid the management of your mtg collection
- Host: GitHub
- URL: https://github.com/traxys/mtg_db
- Owner: traxys
- Created: 2021-08-31T08:13:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T18:51:24.000Z (over 3 years ago)
- Last Synced: 2024-12-21T02:07:48.790Z (15 days ago)
- Language: C
- Size: 195 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# MTG DB
This tool can generate and manipulate a sqlite database of all your MTG collection.
## Building
You need to compile the `spellfix` sqlite extension using `build_spellfix.sh`. You either can pass the generated `.so` as an argument through each invocation that needs it or set the `SPELLFIX_EXT` to it.
To build the binary you can just run `cargo build --release`.
## Usage
The first requirement is a scryfall [all cards dump](https://scryfall.com/docs/api/bulk-data). You then need to process the dump using `mtg_db jsonl` to create a `jsonl` file.
You can then pass this file to `mtg_db dump` to create/update the database with all mtg cards.
Finally you can add some of your cards using `mtg_db add-list` that takes a file with one card per line