get_db($key); // Set the current key in the registry self::$instance[$key] = new Query_Builder($db_params); } // -------------------------------------------------------------------------- /** * Return exiting connections * * @return array */ public static function get_connections() { return array_keys(self::$instance); } } // End of dbreg.php