include/DatabaseManager.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by www.databasecache.com                           *
00003  *   Contact: praba_tuty@databasecache.com                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015   ***************************************************************************/
00016 #ifndef DATABASE_MANAGER_H
00017 #define DATABASE_MANAGER_H
00018 #include<Info.h>
00019 #include<Util.h>
00020 class Table;
00034 class DatabaseManager
00035 {
00036     public:
00042     virtual DbRetVal createTable(const char *name, TableDef &def)=0;
00043 
00048     virtual DbRetVal dropTable(const char *name)=0;
00049 
00054     virtual Table* openTable(const char *name)=0;
00055  
00059     virtual void closeTable(Table *table)=0;
00060 
00064     virtual List getAllTableNames()=0;
00065 
00072     virtual DbRetVal createIndex(const char *indName, IndexInitInfo *info)=0;
00073 
00077     virtual DbRetVal dropIndex(const char *name)=0;
00078     virtual ~DatabaseManager(){ }
00079 };
00080 
00081 #endif

Generated on Mon Jun 9 22:37:14 2008 for csql by  doxygen 1.4.7