summaryrefslogtreecommitdiff
path: root/ndb/include/ndbapi
diff options
context:
space:
mode:
authorunknown <mskold@mysql.com>2006-05-31 15:32:49 +0200
committerunknown <mskold@mysql.com>2006-05-31 15:32:49 +0200
commit2d0ec44bd3d02ef8a0ee5ef90b1d7bf8188e3fd1 (patch)
treee649793b44f040a3f2cacdc26831c7251ae9e470 /ndb/include/ndbapi
parent1b701050e4d89f2f0d9f5a2d27dfa03a16921b3b (diff)
parent83cd9eca3044a0fe0bbae59d5e55d014488d741b (diff)
downloadmariadb-git-2d0ec44bd3d02ef8a0ee5ef90b1d7bf8188e3fd1.tar.gz
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/marty/MySQL/mysql-5.0 ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged sql/ha_ndbcluster.cc: Auto merged
Diffstat (limited to 'ndb/include/ndbapi')
-rw-r--r--ndb/include/ndbapi/NdbDictionary.hpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/ndb/include/ndbapi/NdbDictionary.hpp b/ndb/include/ndbapi/NdbDictionary.hpp
index f0744a9045c..1413931035d 100644
--- a/ndb/include/ndbapi/NdbDictionary.hpp
+++ b/ndb/include/ndbapi/NdbDictionary.hpp
@@ -1183,6 +1183,15 @@ public:
const char * tableName) const;
/**
+ * Get index with given name, NULL if undefined
+ * @param indexName Name of index to get.
+ * @param Table instance table that index belongs to.
+ * @return index if successful, otherwise 0.
+ */
+ const Index * getIndex(const char * indexName,
+ const Table & table) const;
+
+ /**
* Fetch list of indexes of given table.
* @param list Reference to list where to store the listed indexes
* @param tableName Name of table that index belongs to.
@@ -1230,14 +1239,14 @@ public:
/**
* Create defined table given defined Table instance
- * @param table Table to create
+ * @param Table instance to create
* @return 0 if successful otherwise -1.
*/
int createTable(const Table &table);
/**
* Drop table given retrieved Table instance
- * @param table Table to drop
+ * @param Table instance to drop
* @return 0 if successful otherwise -1.
*/
int dropTable(Table & table);
@@ -1301,7 +1310,15 @@ public:
*/
int dropIndex(const char * indexName,
const char * tableName);
-
+
+ /**
+ * Drop index the defined Index instance
+ * @param Index to drop
+ * @return 0 if successful otherwise -1.
+ */
+ int dropIndex(const Index &);
+
+
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
/**
* Invalidate cached index object