20 #ifndef CrundDriver_hpp
21 #define CrundDriver_hpp
27 #include "hrt_utils.h"
39 enum LockMode { READ_COMMITTED, SHARED, EXCLUSIVE };
40 static const char* toStr(LockMode
mode);
41 enum XMode { SINGLE, BULK, BATCH };
42 static const char* toStr(XMode mode);
51 int maxVarbinaryBytes;
55 set< string > exclude;
60 virtual void initProperties();
61 virtual void printProperties();
67 virtual void run(
int nOps)
const = 0;
69 Op(
const string& name) : name(name) {}
73 typedef vector< const Op* > Operations;
74 Operations operations;
77 virtual void initOperations() = 0;
78 virtual void closeOperations() = 0;
79 virtual void runTests();
80 virtual void runLoads(
int nOps);
81 virtual void runOperations(
int nOps);
82 virtual void runOp(
const Op& op,
int nOps);
85 virtual void initConnection() = 0;
86 virtual void closeConnection() = 0;
88 virtual void clearData() = 0;
91 #endif // CrundDriver_hpp