@@ -85,13 +85,13 @@ def fillDB(tournaments,players):
cursor.executemany(
"""insert into tournaments (code,datum,class,round_count,player_count,country_code,description) values (:code,:date,:class,:roundCount,:playerCount,:countryCode,:description)""",
tournaments.values()
)
cursor.executemany("""insert or ignore into players (pin,name) values (:pin,:name)""", players)
cursor.executemany("""insert or replace into players (pin,name) values (:pin,:name)""", players)
"""insert into players_performance (pin,tournament_code,country_code,club,win_count,game_count,rating_before,rating_after) values (:pin,:tournamentCode,:countryCode,:club,:winCount,:gameCount,:rating1,:rating2)""",
players
@@ -22,23 +22,25 @@ Uložené dotazy.
### players
* (integer) pin
* (text) name
### players_performance
Co se vztahuje zároveň k hráči a k turnaji. Většina položek all.hst.
* (text) tournament_code
* (text) country_code
* (text) club
* (integer) win_count
* (integer) game_count
* (real) rating_before
* (real) rating_after
### players_performance_tournaments
Pohled na tournaments a players_performance.
* (text) p_country_code - země hráče
* (text) t_country_code - lokace turnaje
* (text) datum
Status change: