forked from anse1/sqlsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonetdb.hh
More file actions
34 lines (26 loc) · 653 Bytes
/
monetdb.hh
File metadata and controls
34 lines (26 loc) · 653 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
/// @file
/// @brief schema and dut classes for MonetDB
#ifndef MONETDB_HH
#define MONETDB_HH
#include "dut.hh"
#include "relmodel.hh"
#include "schema.hh"
#include <string.h>
#include <mapi.h>
struct monetdb_connection {
Mapi dbh;
monetdb_connection(std::string &conninfo);
void q(const char* query);
~monetdb_connection();
};
struct schema_monetdb : schema, monetdb_connection {
schema_monetdb(std::string &conninfo);
virtual std::string quote_name(const std::string &id) {
return id;
}
};
struct dut_monetdb : dut_base, monetdb_connection {
virtual void test(const std::string &stmt);
dut_monetdb(std::string &conninfo);
};
#endif