Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_db.php @ 14:abddb304201f
continue slowly cleaning up after move to 8.3
| author | Charlie Root |
|---|---|
| date | Sat, 06 Sep 2025 08:16:01 -0400 |
| parents | aff04b06b685 |
| children | b6a96bdd6b29 |
comparison
equal
deleted
inserted
replaced
| 13:cfac0673464e | 14:abddb304201f |
|---|---|
| 24 * @subpackage Database | 24 * @subpackage Database |
| 25 */ | 25 */ |
| 26 class rcube_db | 26 class rcube_db |
| 27 { | 27 { |
| 28 public $db_provider; | 28 public $db_provider; |
| 29 | |
| 30 protected $db_pconn; | |
| 29 | 31 |
| 30 protected $db_dsnw; // DSN for write operations | 32 protected $db_dsnw; // DSN for write operations |
| 31 protected $db_dsnr; // DSN for read operations | 33 protected $db_dsnr; // DSN for read operations |
| 34 protected $db_dsnr_array; | |
| 35 protected $db_dsnw_array; | |
| 32 protected $db_connected = false; // Already connected ? | 36 protected $db_connected = false; // Already connected ? |
| 33 protected $db_mode; // Connection mode | 37 protected $db_mode; // Connection mode |
| 34 protected $dbh; // Connection handle | 38 protected $dbh; // Connection handle |
| 35 protected $dbhs = array(); | 39 protected $dbhs = array(); |
| 36 protected $table_connections = array(); | 40 protected $table_connections = array(); |
| 1138 * | 1142 * |
| 1139 * @return array DSN parameters | 1143 * @return array DSN parameters |
| 1140 */ | 1144 */ |
| 1141 public static function parse_dsn($dsn) | 1145 public static function parse_dsn($dsn) |
| 1142 { | 1146 { |
| 1147 $proto = null; | |
| 1148 | |
| 1143 if (empty($dsn)) { | 1149 if (empty($dsn)) { |
| 1144 return null; | 1150 return null; |
| 1145 } | 1151 } |
| 1146 | 1152 |
| 1147 // Find phptype and dbsyntax | 1153 // Find phptype and dbsyntax |
