Drizzled Public API Documentation

tableprototester.h
1 /*
2  Copyright (C) 2010 Stewart Smith
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License
6  as published by the Free Software Foundation; either version 2
7  of the License, or (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
19 #pragma once
20 
21 #include <drizzled/cursor.h>
22 
24 {
25 public:
28  {}
29 
30  /*
31  The name of the index type that will be used for display
32  don't implement this method unless you really have indexes
33  */
34  const char *index_type(uint32_t key_number);
35  uint32_t index_flags(uint32_t inx) const;
36  int open(const char *name, int mode, uint32_t test_if_locked);
37  int close(void);
38  int doInsertRecord(unsigned char * buf);
39  int doStartTableScan(bool scan);
40  int rnd_next(unsigned char *buf);
41  int rnd_pos(unsigned char * buf, unsigned char *pos);
42 
43  int index_read_map(unsigned char * buf, const unsigned char * key, drizzled::key_part_map keypart_map,
44  drizzled::ha_rkey_function find_flag);
45  int index_read_idx_map(unsigned char * buf, uint32_t idx, const unsigned char * key,
46  drizzled::key_part_map keypart_map,
47  drizzled::ha_rkey_function find_flag);
48  int index_read_last_map(unsigned char * buf, const unsigned char * key, drizzled::key_part_map keypart_map);
49  int index_next(unsigned char * buf);
50  int index_prev(unsigned char * buf);
51  int index_first(unsigned char * buf);
52  int index_last(unsigned char * buf);
53  void position(const unsigned char *record);
54  int info(uint32_t flag);
55 
56  void get_auto_increment(uint64_t, uint64_t,
57  uint64_t,
58  uint64_t *,
59  uint64_t *)
60  {}
61 };
62