SQLsmith
v1.2.1-5-gfacd7a8
A random SQL query generator
sqlite.hh
Go to the documentation of this file.
1
4
#ifndef SQLITE_HH
5
#define SQLITE_HH
6
7
extern
"C"
{
8
#include <sqlite3.h>
9
}
10
11
#include "
schema.hh
"
12
#include "
relmodel.hh
"
13
#include "
dut.hh
"
14
15
struct
sqlite_connection
{
16
sqlite3 *db;
17
char
*zErrMsg = 0;
18
int
rc;
19
void
q(
const
char
*query);
20
sqlite_connection
(std::string &conninfo);
21
~
sqlite_connection
();
22
};
23
24
struct
schema_sqlite
:
schema
,
sqlite_connection
{
25
schema_sqlite
(std::string &conninfo,
bool
no_catalog);
26
virtual
std::string quote_name(
const
std::string &
id
) {
27
return
id;
28
}
29
};
30
31
struct
dut_sqlite
:
dut_base
,
sqlite_connection
{
32
virtual
void
test(
const
std::string &stmt);
33
dut_sqlite
(std::string &conninfo);
34
};
35
36
#endif
dut.hh
Base class for device under test.
relmodel.hh
supporting classes for the grammar
schema.hh
Base class providing schema information to grammar.
dut_base
Definition:
dut.hh:44
dut_sqlite
Definition:
sqlite.hh:31
schema_sqlite
Definition:
sqlite.hh:24
schema
Definition:
schema.hh:16
sqlite_connection
Definition:
sqlite.hh:15
Generated by
1.9.1