cvs: pear /MDB manager_common.php
| From: | Lukas Smith | Date: | Sat, 20 Jul 2002 19:26:34 +0000 |
| Subject: | cvs: pear /MDB manager_common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5215@lists.php.net to get a copy of this message | ||
lsmith Sat Jul 20 15:26:34 2002 EDT
Modified files:
/pear/MDB manager_common.php
Log:
added reverse engineering methods for indexes and sequences
Index: pear/MDB/manager_common.php
diff -u pear/MDB/manager_common.php:1.8 pear/MDB/manager_common.php:1.9
--- pear/MDB/manager_common.php:1.8 Wed Jul 17 10:33:54 2002
+++ pear/MDB/manager_common.php Sat Jul 20 15:26:33 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: manager_common.php,v 1.8 2002/07/17 14:33:54 lsmith Exp $
+// $Id: manager_common.php,v 1.9 2002/07/20 19:26:33 lsmith Exp $
//
// MDB proxy class for RDBMS management methods.
//
@@ -619,6 +619,45 @@
}
// }}}
+ // {{{ listTableIndexes()
+
+ /**
+ * list all indexes in a table
+ *
+ * @param $dbs (reference) array where database names will be stored
+ * @param string $table name of table that should be used in method
+ *
+ * @access public
+ *
+ * @return mixed data array on success, a DB error on failure
+ */
+ function listTableIndexes(&$db, $table)
+ {
+ return $db->raiseError(DB_ERROR_NOT_CAPABLE, "", "",
+ 'List table indexes: List Indexes is not supported');
+ }
+
+ // }}}
+ // {{{ getTableIndexDefinition()
+
+ /**
+ * get the stucture of an index into an array
+ *
+ * @param $dbs (reference) array where database names will be stored
+ * @param string $table name of table that should be used in method
+ * @param string $index name of index that should be used in method
+ *
+ * @access public
+ *
+ * @return mixed data array on success, a DB error on failure
+ */
+ function getTableIndexDefinition(&$db, $table, $index)
+ {
+ return $db->raiseError(DB_ERROR_NOT_CAPABLE, "", "",
+ 'get table index definition: getting index definition is not supported');
+ }
+
+ // }}}
// {{{ createSequence()
/**
@@ -675,7 +714,25 @@
'List sequences: List sequences is not supported');
}
-};
+ // }}}
+ // {{{ getSequenceDefinition()
+
+ /**
+ * get the stucture of a sequence into an array
+ *
+ * @param $dbs (reference) array where database names will be stored
+ * @param string $sequence name of sequence that should be used in method
+ *
+ * @access public
+ *
+ * @return mixed data array on success, a DB error on failure
+ */
+ function getSequenceDefinition(&$db, $sequence)
+ {
+ return $db->raiseError(DB_ERROR_NOT_CAPABLE, "", "",
+ 'get squence definition: getting sequence definition is not supported');
+ }
+}
}
-?>
+?>
\ No newline at end of file