Zero
0.1.0
src
cmd
kits
tpcc
tpcc_schema.h
Go to the documentation of this file.
1
/* -*- mode:C++; c-basic-offset:4 -*-
2
Shore-kits -- Benchmark implementations for Shore-MT
3
4
Copyright (c) 2007-2009
5
Data Intensive Applications and Systems Labaratory (DIAS)
6
Ecole Polytechnique Federale de Lausanne
7
8
All Rights Reserved.
9
10
Permission to use, copy, modify and distribute this software and
11
its documentation is hereby granted, provided that both the
12
copyright notice and this permission notice appear in all copies of
13
the software, derivative works or modified versions, and any
14
portions thereof, and that both notices appear in supporting
15
documentation.
16
17
This code is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS
20
DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
21
RESULTING FROM THE USE OF THIS SOFTWARE.
22
*/
23
32
#ifndef __TPCC_SCHEMA_H
33
#define __TPCC_SCHEMA_H
34
35
#include <cmath>
36
37
#include "
sm_vas.h
"
38
39
#include "
tpcc/tpcc_const.h
"
40
#include "
table_man.h
"
41
42
namespace
tpcc
{
43
44
45
/* -------------------------------------------------- */
46
/* --- All the tables used in the TPC-C benchmark --- */
47
/* --- --- */
48
/* --- Schema details at: --- */
49
/* --- src/workload/tpcc/shore_tpcc_schema.cpp --- */
50
/* -------------------------------------------------- */
51
52
53
DECLARE_TABLE_SCHEMA
(warehouse_t);
54
55
DECLARE_TABLE_SCHEMA
(district_t);
56
57
DECLARE_TABLE_SCHEMA
(stock_t);
58
59
DECLARE_TABLE_SCHEMA
(order_line_t);
60
61
DECLARE_TABLE_SCHEMA
(customer_t);
62
63
DECLARE_TABLE_SCHEMA
(history_t);
64
65
DECLARE_TABLE_SCHEMA
(order_t);
66
67
DECLARE_TABLE_SCHEMA
(new_order_t);
68
69
DECLARE_TABLE_SCHEMA
(item_t);
70
};
71
72
#endif // __TPCC_SCHEMA_H
tpcc_const.h
: Constants needed by the TPC-C kit
tpcc
Definition:
tpcc_client.cpp:33
tpcc::DECLARE_TABLE_SCHEMA
DECLARE_TABLE_SCHEMA(warehouse_t)
sm_vas.h
table_man.h
: Base class for tables stored in Shore
Generated by
1.8.12