-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from matt-bernhardt/14_mock_database
Adds mock, starts applying to Database.query method
- Loading branch information
Showing
5 changed files
with
138 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
SQLyog Community v10.3 | ||
MySQL - 5.5.28-log : Database - scouting | ||
********************************************************************* | ||
*/ | ||
USE trapp; | ||
|
||
/*!40101 SET NAMES utf8 */; | ||
|
||
/*!40101 SET SQL_MODE=''*/; | ||
|
||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
/*Table structure for table `tbl_games` */ | ||
|
||
DROP TABLE IF EXISTS `tbl_games`; | ||
|
||
CREATE TABLE `tbl_games` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`MatchTime` datetime DEFAULT NULL, | ||
`MatchTypeID` int(10) unsigned NOT NULL DEFAULT '0', | ||
`HteamID` int(11) DEFAULT NULL, | ||
`Hscore` int(11) DEFAULT '0', | ||
`AteamID` int(11) DEFAULT NULL, | ||
`Ascore` int(11) DEFAULT '0', | ||
`VenueID` int(11) DEFAULT NULL, | ||
`Duration` int(11) unsigned NOT NULL DEFAULT '0', | ||
`Attendance` int(11) DEFAULT NULL, | ||
`MeanTemperature` int(3) unsigned DEFAULT NULL COMMENT 'Mean Daily Temperature, from Weather Underground', | ||
`Precipitation` double(2,1) DEFAULT NULL, | ||
`WeatherEvents` varchar(255) NOT NULL DEFAULT '""', | ||
`Notes` text, | ||
PRIMARY KEY (`ID`), | ||
KEY `EventDate` (`MatchTime`), | ||
KEY `HTeamID` (`HteamID`), | ||
KEY `ATeamID` (`AteamID`) | ||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
SQLyog Community v10.3 | ||
MySQL - 5.5.28-log : Database - scouting | ||
********************************************************************* | ||
*/ | ||
USE trapp; | ||
|
||
/*!40101 SET NAMES utf8 */; | ||
|
||
/*!40101 SET SQL_MODE=''*/; | ||
|
||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
/*Table structure for table `tbl_players` */ | ||
|
||
DROP TABLE IF EXISTS `tbl_players`; | ||
|
||
CREATE TABLE `tbl_players` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`LastName` varchar(255) DEFAULT NULL, | ||
`FirstName` varchar(255) DEFAULT NULL, | ||
`Position` varchar(255) DEFAULT '', | ||
`RosterNumber` int(3) unsigned DEFAULT NULL, | ||
`Picture` varchar(50) DEFAULT 'coming_soon.gif', | ||
`Class` int(4) DEFAULT '0', | ||
`Eligible` char(1) NOT NULL DEFAULT '0', | ||
`College` varchar(255) DEFAULT '', | ||
`Current_Club` varchar(50) DEFAULT '', | ||
`ContractStatus` tinyint(3) unsigned DEFAULT NULL, | ||
`LastClub` varchar(50) DEFAULT NULL, | ||
`YouthClub` varchar(50) DEFAULT NULL, | ||
`Height_Feet` tinyint(4) DEFAULT NULL, | ||
`Height_Inches` tinyint(4) DEFAULT NULL, | ||
`Birthplace` varchar(255) DEFAULT NULL, | ||
`HomeTown` varchar(255) DEFAULT NULL, | ||
`Citizenship` varchar(255) DEFAULT NULL, | ||
`Bio` text, | ||
`Visible` int(1) NOT NULL DEFAULT '0', | ||
`Award_Pts` double DEFAULT NULL, | ||
`Intl_Pts` double DEFAULT NULL, | ||
`Weight` double DEFAULT NULL, | ||
`DOB` date DEFAULT NULL, | ||
`Expansion2014` int(1) unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`ID`), | ||
UNIQUE KEY `RosterID` (`ID`) | ||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
u = 'DBUSER' | ||
p = 'DBPASSWORD' | ||
h = 'DBHOST' | ||
d = 'DBNAME' | ||
u = 'travis' | ||
p = '' | ||
h = 'localhost' | ||
d = 'trapp' |