MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TwsDriver.hpp
1
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=4:tabstop=4:smarttab:
3
*
4
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef TwsDriver_hpp
21
#define TwsDriver_hpp
22
23
#include "Driver.hpp"
24
25
class
TwsDriver
:
public
Driver
{
26
protected
:
27
28
// benchmark settings
29
enum
LockMode { READ_COMMITTED, SHARED, EXCLUSIVE };
30
static
const
char
* toStr(LockMode
mode
);
31
enum
XMode { SINGLE, BULK, BATCH };
32
static
const
char
* toStr(XMode mode);
33
bool
renewConnection;
34
bool
doInsert;
35
bool
doLookup;
36
bool
doUpdate;
37
bool
doDelete;
38
bool
doSingle;
39
bool
doBulk;
40
bool
doBatch;
41
bool
doVerify;
42
LockMode lockMode;
43
int
nRows;
44
int
nRuns;
45
46
// benchmark intializers/finalizers
47
virtual
void
init();
48
virtual
void
close();
49
virtual
void
initProperties();
50
virtual
void
printProperties();
51
52
// benchmark operations
53
virtual
void
runTests();
54
virtual
void
runLoads();
55
virtual
void
runSeries();
56
virtual
void
runOperations();
57
virtual
void
runLoadOperations() = 0;
58
void
verify(
int
exp,
int
act);
59
void
verify(
long
exp,
long
act);
60
void
verify(
long
long
exp,
long
long
act);
61
void
verify(
const
char
* exp,
const
char
* act);
62
63
// datastore operations
64
virtual
void
initConnection() = 0;
65
virtual
void
closeConnection() = 0;
66
//virtual void clearPersistenceContext() = 0; // not used
67
//virtual void clearData() = 0; // not used
68
};
69
70
#endif // TwsDriver_hpp
storage
ndb
test
crund
tws
tws_cpp
TwsDriver.hpp
Generated on Sat Nov 9 2013 01:28:17 for MySQL 5.6.14 Source Code Document by
1.8.1.2