~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/tableprototester/tableprototester.h

Merged embedded-innodb-index-lookup into embedded-innodb-delete-row.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17
17
*/
18
18
 
19
 
#pragma once
 
19
#ifndef PLUGIN_TABLEPROTOTESTER_TABLEPROTOTESTER_H
 
20
#define PLUGIN_TABLEPROTOTESTER_TABLEPROTOTESTER_H
20
21
 
21
22
#include <drizzled/cursor.h>
22
23
 
23
24
class TableProtoTesterCursor: public drizzled::Cursor
24
25
{
25
26
public:
26
 
  TableProtoTesterCursor(drizzled::plugin::StorageEngine &engine, drizzled::Table &table_arg);
 
27
  TableProtoTesterCursor(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table_arg);
27
28
  ~TableProtoTesterCursor()
28
29
  {}
29
30
 
35
36
  uint32_t index_flags(uint32_t inx) const;
36
37
  int open(const char *name, int mode, uint32_t test_if_locked);
37
38
  int close(void);
38
 
  int doInsertRecord(unsigned char * buf);
39
 
  int doStartTableScan(bool scan);
 
39
  int write_row(unsigned char * buf);
 
40
  int rnd_init(bool scan);
40
41
  int rnd_next(unsigned char *buf);
41
42
  int rnd_pos(unsigned char * buf, unsigned char *pos);
42
43
 
52
53
  int index_last(unsigned char * buf);
53
54
  void position(const unsigned char *record);
54
55
  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
56
};
62
57
 
 
58
#endif /* PLUGIN_TABLEPROTOTESTER_TABLEPROTOTESTER_H */