yasuki_core.install.yaml_to_sql.load_cards#

load_cards(cards_dir, dsn)[source]#

Load every per-set YAML file into the card tables.

Cards are identified by their explicit id or, failing that, a slug of the extended title, and deduplicated across the sets they appear in. Each YAML entry contributes one printing; a card with several printings in one set gets suffixed printing ids. Set names resolve to set ids via l5r_sets.

Parameters:
cards_dirpath

Directory of per-set YAML files.

dsnstr

PostgreSQL connection string.