TheMathemagicians/sevenkeys/cmd/importcards/main.go

14 lines
253 B
Go
Raw Normal View History

2024-04-28 14:13:47 +00:00
package main
import (
"sevenkeys/database"
"sevenkeys/database/operations"
"sevenkeys/scryfall/methods"
)
func main() {
db := database.GetDatabaseFromConfig("config.json")
allCards := methods.GetAllCards()
operations.InsertCards(db, allCards)
}