summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-25 04:51:08 +0200
committeradmin <devnull@localhost>2006-09-25 04:51:08 +0200
commit6ca6f9471ba31f7cba9054d075b4f90382b2d410 (patch)
tree80bac9d110b8c9a907600e6450e2e241e2a5ccd7 /system/database/drivers/postgre
parenta5e812c007b8dfbc4c117df379d63060f08b096a (diff)
Diffstat (limited to 'system/database/drivers/postgre')
-rw-r--r--system/database/drivers/postgre/postgre_utility.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/system/database/drivers/postgre/postgre_utility.php b/system/database/drivers/postgre/postgre_utility.php
index cfc475f6b..c38cf6e69 100644
--- a/system/database/drivers/postgre/postgre_utility.php
+++ b/system/database/drivers/postgre/postgre_utility.php
@@ -26,6 +26,34 @@ class CI_DB_postgre_utility extends CI_DB_utility {
/**
+ * Create database
+ *
+ * @access public
+ * @param string the database name
+ * @return bool
+ */
+ function create_database($name)
+ {
+ return $this->db->query("CREATE DATABASE ".$this->db->_escape_table($name));
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
+ * Drop database
+ *
+ * @access public
+ * @param string the database name
+ * @return bool
+ */
+ function drop_database($name)
+ {
+ return $this->db->query("DROP DATABASE ".$this->db->_escape_table($name));
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Version number query string
*
* @access public