parse()
parse(string $connection)
Parse the given connection string.
The given connection string cannot contains dbtype://, but can either be in standard or PDO format.
Parameters
string | $connection | the connection string |
Throws
- \Gishiki\Database\Adapters\ConnectionParser\ConnectionParserException
the error preventing parsing
- \InvalidArgumentException
the connection parameter is not a valid string