summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index e8c4a8236..b89ebbf8d 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -156,6 +156,23 @@ class CI_DB_driver {
}
}
+ // --------------------------------------------------------------------
+
+ /**
+ * Load the Utilities Class
+ *
+ * @access public
+ * @return string
+ */
+ function load_utilities()
+ {
+ $obj =& get_instance();
+
+ require_once(BASEPATH.'database/DB_utility'.EXT);
+ require_once(BASEPATH.'database/drivers/'.$this->dbdriver.'/'.$this->dbdriver.'_utility'.EXT);
+ $class = 'CI_DB_'.$this->dbdriver.'_utility';
+ $obj->dbutil = new $class();
+ }
// --------------------------------------------------------------------