@@ 46-48 (lines=3) @@ | ||
43 | */ |
|
44 | private function newConnectionString(array $config) |
|
45 | { |
|
46 | if ($config["driver"] === "mysql") { |
|
47 | return sprintf("mysql:host=%s;port=%s;dbname=%s;unix_socket=%s;charset=%s", $config["host"], $config["port"], $config["schema"], $config["socket"], $config["charset"]); |
|
48 | } |
|
49 | ||
50 | if ($config["driver"] === "pgsql") { |
|
51 | return sprintf("pgsql:host=%s;port=%s;dbname=%s", $config["host"], $config["port"], $config["schema"]); |
@@ 100-102 (lines=3) @@ | ||
97 | */ |
|
98 | private function newConnectionString(array $config) |
|
99 | { |
|
100 | if ($config["driver"] === "mysql") { |
|
101 | return "mysql:host={$config['host']};port={$config['port']};dbname={$config['schema']};unix_socket={$config['socket']};charset={$config['charset']}"; |
|
102 | } |
|
103 | ||
104 | if ($config["driver"] === "pgsql") { |
|
105 | return "pgsql:host={$config['host']};port={$config['port']};dbname={$config['schema']}"; |