2
Copyright (C) 2010 Stewart Smith
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.
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.
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.
21
#include <drizzled/cursor.h>
23
class TableProtoTesterCursor: public drizzled::Cursor
26
TableProtoTesterCursor(drizzled::plugin::StorageEngine &engine, drizzled::Table &table_arg);
27
~TableProtoTesterCursor()
31
The name of the index type that will be used for display
32
don't implement this method unless you really have indexes
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);
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);
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);
56
void get_auto_increment(uint64_t, uint64_t,