-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathucdb.h
More file actions
36 lines (29 loc) · 757 Bytes
/
ucdb.h
File metadata and controls
36 lines (29 loc) · 757 Bytes
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
/*
* UniversalContainer library.
* Copyright Jason Denton, 2008,2010.
* Made available under the new BSD license, as described in LICENSE
*
* Send comments and bug reports to jason.denton@gmail.com
* http://www.greatpanic.com/code.html
*/
/*
Abstract base class for interfacing SQL and UC.
*/
#ifndef _UCDB_H_
#define _UCDB_H_
#include "ucontainer.h"
using namespace std;
namespace JAD {
class DatabaseInterface {
protected:
UniversalContainer db_info;
public:
virtual UniversalContainer sql_exec(std::string) = 0;
virtual UniversalContainer get_db_info(void);
virtual bool start_transaction(void);
virtual bool commit(void);
virtual bool rollback(void);
virtual ~DatabaseInterface(void) {};
};
}
#endif