-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhk_firebirddatabase.h
41 lines (37 loc) · 1.74 KB
/
hk_firebirddatabase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ****************************************************************************
// copyright (c) 2000-2005 Horst Knorr <[email protected]>
// This file is part of the hk_firebirdclasses library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file COPYING included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************
#ifndef HK_FIREBIRDDATABASE
#define HK_FIREBIRDDATABASE
#include "hk_database.h"
#include <ibase.h>
class hk_firebirdconnection;
class hk_presentation;
class hk_firebirddatabase:public hk_database
{
friend class hk_firebirdconnection;
public:
hk_firebirdconnection* connection(void){return p_firebirdconnection;}
~hk_firebirddatabase();
hk_firebirdconnection* firebirdconnection(void){return p_firebirdconnection;}
virtual bool set_name(const hk_string& n);
protected:
hk_firebirddatabase(hk_firebirdconnection*c);
void driver_specific_tablelist(void);
void driver_specific_viewlist(void);
bool driver_specific_select_db(void);
hk_datasource* driver_specific_new_table(hk_presentation* p);
hk_datasource* driver_specific_new_resultquery(hk_presentation* p);
virtual hk_datasource* driver_specific_new_view(hk_presentation* p);
hk_actionquery *driver_specific_new_actionquery(void);
private:
hk_firebirdconnection* p_firebirdconnection;
} ;
#endif