Property | Type | Description | |
---|---|---|---|
$connection | PDO | .. ...you suck connection... ...see... ... I mock you! |
Method | Description | |
---|---|---|
__construct ( PDO $connection = null ) | Create a new database creator | |
createDatabase ( string $driver, string $host, string $database, string $username, string $password ) : void | Create a new database from given settings |
Method | Description | |
---|---|---|
connection ( string $driver, string $host, string $username, string $password ) : PDO | Creates a new connection for given driver and also constructs a generic dsn | |
findPdoConnection ( string $driver, string $host, string $username, string $password ) : PDO | Creates a PDO connection for us |
public __construct ( PDO $connection = null ) | ||
$connection | PDO |