@@ 33-40 (lines=8) @@ | ||
30 | * |
|
31 | * @return string |
|
32 | */ |
|
33 | public static function mysql($connectionInfos) |
|
34 | { |
|
35 | $host = $connectionInfos->host; |
|
36 | $port = $connectionInfos->port; |
|
37 | $baseName = $connectionInfos->baseName; |
|
38 | ||
39 | return 'mysql:host='.$host.';port='.$port.';dbname='.$baseName; |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * Create the PDO instance for sqlite driver |
|
@@ 61-68 (lines=8) @@ | ||
58 | * |
|
59 | * @return string |
|
60 | */ |
|
61 | public static function pgsql($connectionInfos) |
|
62 | { |
|
63 | $host = $connectionInfos->host; |
|
64 | $port = $connectionInfos->port; |
|
65 | $baseName = $connectionInfos->baseName; |
|
66 | ||
67 | return 'pgsql:host='.$host.';port='.$port.';dbname='.$baseName; |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Create the PDO instance for cubrid driver |
|
@@ 80-87 (lines=8) @@ | ||
77 | * |
|
78 | * @return string |
|
79 | */ |
|
80 | public static function cubrid($connectionInfos) |
|
81 | { |
|
82 | $host = $connectionInfos->host; |
|
83 | $port = $connectionInfos->port; |
|
84 | $baseName = $connectionInfos->baseName; |
|
85 | ||
86 | return 'cubrid:dbname='.$baseName.';host='.$host.';port='.$port; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Create the PDO instance for dblib driver |
|
@@ 99-106 (lines=8) @@ | ||
96 | * |
|
97 | * @return string |
|
98 | */ |
|
99 | public static function dblib($connectionInfos) |
|
100 | { |
|
101 | $host = $connectionInfos->host; |
|
102 | $port = $connectionInfos->port; |
|
103 | $baseName = $connectionInfos->baseName; |
|
104 | ||
105 | return 'dblib:host='.$host.':'.$port.';dbname='.$baseName; |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * Create the PDO instance for firebird driver |