Update database.alt.php
This commit is contained in:
parent
0cf686acc0
commit
52097f29bf
|
@ -3,14 +3,14 @@
|
||||||
* @file database.alt.php
|
* @file database.alt.php
|
||||||
* @date 2018-09-10
|
* @date 2018-09-10
|
||||||
* @author Go Namhyeon <gnh1201@gmail.com>
|
* @author Go Namhyeon <gnh1201@gmail.com>
|
||||||
* @brief Database alternative driver switcher
|
* @brief Database alternative connecter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(!function_exists("get_db_alt_connect")) {
|
if(function_exists("get_db_alt_connect")) {
|
||||||
function get_db_alt_connect($driver) {
|
function get_db_alt_connect($driver) {
|
||||||
$conn = false;
|
$conn = false;
|
||||||
$config = get_config();
|
$config = get_config();
|
||||||
|
|
||||||
$rules = array(
|
$rules = array(
|
||||||
array(
|
array(
|
||||||
"driver" => "mysql.pdo",
|
"driver" => "mysql.pdo",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user