1/*
2 * Legal Notice
3 *
4 * This document and associated source code (the "Work") is a part of a
5 * benchmark specification maintained by the TPC.
6 *
7 * The TPC reserves all right, title, and interest to the Work as provided
8 * under U.S. and international laws, including without limitation all patent
9 * and trademark rights therein.
10 *
11 * No Warranty
12 *
13 * 1.1 TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE INFORMATION
14 * CONTAINED HEREIN IS PROVIDED "AS IS" AND WITH ALL FAULTS, AND THE
15 * AUTHORS AND DEVELOPERS OF THE WORK HEREBY DISCLAIM ALL OTHER
16 * WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED OR STATUTORY,
17 * INCLUDING, BUT NOT LIMITED TO, ANY (IF ANY) IMPLIED WARRANTIES,
18 * DUTIES OR CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
19 * PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OF
20 * WORKMANLIKE EFFORT, OF LACK OF VIRUSES, AND OF LACK OF NEGLIGENCE.
21 * ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT,
22 * QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT
23 * WITH REGARD TO THE WORK.
24 * 1.2 IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THE WORK BE LIABLE TO
25 * ANY OTHER PARTY FOR ANY DAMAGES, INCLUDING BUT NOT LIMITED TO THE
26 * COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS
27 * OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT,
28 * INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY,
29 * OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT
30 * RELATING TO THE WORK, WHETHER OR NOT SUCH AUTHOR OR DEVELOPER HAD
31 * ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
32 *
33 * Contributors:
34 * Gradient Systems
35 */
36#include "w_call_center.h"
37#include "w_catalog_page.h"
38#include "w_catalog_returns.h"
39#include "w_catalog_sales.h"
40#include "w_customer.h"
41#include "w_customer_address.h"
42#include "w_customer_demographics.h"
43#include "w_datetbl.h"
44#include "w_household_demographics.h"
45#include "w_income_band.h"
46#include "w_inventory.h"
47#include "w_item.h"
48#include "w_promotion.h"
49#include "w_reason.h"
50#include "w_ship_mode.h"
51#include "w_store.h"
52#include "w_store_returns.h"
53#include "w_store_sales.h"
54#include "w_timetbl.h"
55#include "w_warehouse.h"
56#include "w_web_page.h"
57#include "w_web_returns.h"
58#include "w_web_sales.h"
59#include "w_web_site.h"
60#include "dbgen_version.h"
61#include "tdef_functions.h"
62
63table_func_t w_tdef_funcs[] = {{"call_center", mk_w_call_center, {NULL, NULL}, NULL},
64 {"catalog_page", mk_w_catalog_page, {NULL, NULL}, NULL},
65 {"catalog_returns", NULL, {NULL, NULL}, NULL},
66 {"catalog_sales", mk_w_catalog_sales, {NULL, NULL}, NULL},
67 {"customer", mk_w_customer, {NULL, NULL}, NULL},
68 {"customer_address", mk_w_customer_address, {NULL, NULL}, NULL},
69 {"customer_demographics", mk_w_customer_demographics, {NULL, NULL}, NULL},
70 {"date", mk_w_date, {NULL, NULL}, NULL},
71 {"household_demographics", mk_w_household_demographics, {NULL, NULL}, NULL},
72 {"income_band", mk_w_income_band, {NULL, NULL}, NULL},
73 {"inventory", mk_w_inventory, {NULL, NULL}, NULL},
74 {"item", mk_w_item, {NULL, NULL}, NULL},
75 {"promotion", mk_w_promotion, {NULL, NULL}, NULL},
76 {"reason", mk_w_reason, {NULL, NULL}, NULL},
77 {"ship_mode", mk_w_ship_mode, {NULL, NULL}, NULL},
78 {"store", mk_w_store, {NULL, NULL}, NULL},
79 {"store_returns", mk_w_store_returns, {NULL, NULL}, NULL},
80 {"store_sales", mk_w_store_sales, {NULL, NULL}, NULL},
81 {"time", mk_w_time, {NULL, NULL}, NULL},
82 {"warehouse", mk_w_warehouse, {NULL, NULL}, NULL},
83 {"web_page", mk_w_web_page, {NULL, NULL}, NULL},
84 {"web_returns", mk_w_web_returns, {NULL, NULL}, NULL},
85 {"web_sales", mk_w_web_sales, {NULL, NULL}, NULL},
86 {"web_site", mk_w_web_site, {NULL, NULL}, NULL},
87 {"dbgen_version", mk_dbgen_version, {NULL, NULL}, NULL},
88 {NULL}};
89
90table_func_t *getTdefFunctionsByNumber(nTable) {
91 return (&w_tdef_funcs[nTable]);
92}
93