+ -- | We convert from XML to the database by dropping the lines and
+ -- rotation number (which are specific to the games, not the teams
+ -- themselves).
+ --
+ from_xml OddsGameHomeTeamXml{..} =
+ OddsGameTeam {
+ db_team_id = xml_home_team_id,
+ db_abbr = xml_home_abbr,
+ db_team_name = xml_home_team_name }
+
+-- | XmlImport allows us to call 'insert_xml' directly on an
+-- 'OddsGameHomeTeamXml' without explicitly converting it to the
+-- associated database type.
+--