Created
August 27, 2015 04:12
-
-
Save camfindlay/50bf3dd1cfaa42addcf7 to your computer and use it in GitHub Desktop.
Switch to SQLite3 for testing when a query string is passed in
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
if (Director::isDev()) { | |
if (isset($_GET['db']) && $db = $_GET['db']) { | |
if ($db == 'sqlite3') { | |
$databaseConfig['type'] = 'SQLite3Database'; | |
$databaseConfig['memory'] = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment