\Gishiki\Database\Adapters\Utils\ConnectionParserMysqlConnectionParser

the parser for MySQL connection queries.

Summary

Methods
Properties
Constants
parse()
getPDOConnection()
No public properties found
No constants found
parsePDOConnectionQuery()
parseStandardConnectionQuery()
getPDODriverName()
$host
$port
$name
$user
$password
$args
N/A
No private methods found
No private properties found
N/A

Properties

$host

$host : string

Type

string — the database host

$port

$port : string

Type

string — the database port

$name

$name : string

Type

string — the database name

$user

$user : string

Type

string — the database user

$password

$password : string

Type

string — the user password

$args

$args : array|null

Type

array|null — the arguments in pdo format

Methods

parse()

parse(  $connection) 

Parameters

$connection

getPDOConnection()

getPDOConnection() 

parsePDOConnectionQuery()

parsePDOConnectionQuery(string  $connection) 

Parse a connection string given in PDO format (without dbtype://).

Parameters

string $connection

the connection string to be parsed

Throws

\Gishiki\Database\Adapters\Utils\ConnectionParser\ConnectionParserException

the error preventing the parse

\InvalidArgumentException

the connection parameter is not a valid string

parseStandardConnectionQuery()

parseStandardConnectionQuery(string  $connection) 

Parse a connection string given in standard format (without dbtype://).

Parameters

string $connection

the connection string to be parsed

Throws

\Gishiki\Database\Adapters\Utils\ConnectionParser\ConnectionParserException

the error preventing the parse

\InvalidArgumentException

the connection parameter is not a valid string

getPDODriverName()

getPDODriverName()