@@ 50-52 (lines=3) @@ | ||
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"]); |
|
52 | } |
|
53 | ||
54 | if ($config["driver"] === "sqlite") { |
|
55 | return sprintf("sqlite:%s", $config["file"]); |
@@ 104-106 (lines=3) @@ | ||
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']}"; |
|
106 | } |
|
107 | ||
108 | if ($config["driver"] === "sqlite") { |
|
109 | return "sqlite:{$config['file']}"; |