File: monetdb.hh

package info (click to toggle)
sqlsmith 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 540 kB
  • sloc: cpp: 3,221; sql: 175; makefile: 33; sh: 1
file content (34 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
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