Databaseconnectionclasses  0.5.3
hk_mysqldatabase.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_mysqlclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file COPYING included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 #ifndef HK_MYSQLDATABASE
12 #define HK_MYSQLDATABASE
13 #include "hk_database.h"
14 #include "hk_mysqldatasource.h"
15 
16 class hk_mysqlconnection;
17 class hk_presentation;
18 
20 {
21  friend class hk_mysqlconnection;
22 
23  public:
24  hk_mysqlconnection* connection(void);
26 
27  protected:
29  void driver_specific_tablelist(void);
30  hk_datasource* driver_specific_new_table(hk_presentation* p);
31  hk_datasource* driver_specific_new_resultquery(hk_presentation* p);
32  hk_actionquery* driver_specific_new_actionquery(void);
33  virtual bool driver_specific_rename_table(const hk_string& oldname,const hk_string& newname);
34  bool driver_specific_select_db(void);
35  void driver_specific_viewlist(void);
36  virtual hk_datasource* driver_specific_new_view(hk_presentation* p);
37 
38  private:
39  hk_mysqlconnection* p_mysqlconnection;
40  list<hk_mysqldatasource*> p_dsourcelist;
41 } ;
42 #endif
represents a particular database on the SQL Server
Definition: hk_database.h:48
Definition: hk_mysqldatabase.h:19
void driver_specific_tablelist(void)
Definition: hk_mysqldatabase.cpp:42
Definition: hk_mysqlconnection.h:37
represents a resultquery or a table of a database.
Definition: hk_datasource.h:45
base class for multidatasource based classes like forms and reports
Definition: hk_presentation.h:40
Action query (i.e. ALTER TABLE) with no result.
Definition: hk_actionquery.h:29