TheMathemagicians/sevenkeys/cmd/importcards/main.go

14 lines
253 B
Go

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)
}