~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.h

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#define INNODB_HANDLER_HA_INNODB_H
28
28
 
29
29
#include <drizzled/cursor.h>
30
 
#include <drizzled/thr_lock.h>
31
 
#include <drizzled/plugin/transactional_storage_engine.h>
 
30
#include <mysys/thr_lock.h>
32
31
 
33
 
using namespace drizzled;
34
32
/** InnoDB table share */
35
33
typedef struct st_innobase_share {
36
34
        THR_LOCK        lock;           /*!< MySQL lock protecting
100
98
 
101
99
        /* Init values for the class: */
102
100
 public:
103
 
        UNIV_INTERN ha_innobase(plugin::StorageEngine &engine,
 
101
        UNIV_INTERN ha_innobase(drizzled::plugin::StorageEngine &engine,
104
102
                                TableShare &table_arg);
105
103
        UNIV_INTERN ~ha_innobase();
106
 
  /**
107
 
   * Returns the plugin::TransactionStorageEngine pointer
108
 
   * of the cursor's underlying engine.
109
 
   *
110
 
   * @todo
111
 
   *
112
 
   * Have a TransactionalCursor subclass...
113
 
   */
114
 
  UNIV_INTERN plugin::TransactionalStorageEngine *getTransactionalEngine()
115
 
  {
116
 
    return static_cast<plugin::TransactionalStorageEngine *>(engine);
117
 
  }
118
 
 
119
104
        /*
120
105
          Get the row type from the storage engine.  If this method returns
121
106
          ROW_TYPE_NOT_USED, the information in HA_CREATE_INFO should be used.
162
147
        UNIV_INTERN int extra(enum ha_extra_function operation);
163
148
        UNIV_INTERN int reset();
164
149
        UNIV_INTERN int external_lock(Session *session, int lock_type);
 
150
        UNIV_INTERN int start_stmt(Session *session, thr_lock_type lock_type);
165
151
        void position(unsigned char *record);
166
152
        UNIV_INTERN ha_rows records_in_range(uint inx, key_range *min_key, key_range
167
153
                                                                *max_key);
177
163
        UNIV_INTERN void free_foreign_key_create_info(char* str);
178
164
        UNIV_INTERN THR_LOCK_DATA **store_lock(Session *session, THR_LOCK_DATA **to,
179
165
                                        enum thr_lock_type lock_type);
 
166
        UNIV_INTERN void init_table_handle_for_HANDLER();
180
167
        UNIV_INTERN virtual void get_auto_increment(uint64_t offset, 
181
168
                                                    uint64_t increment,
182
169
                                                    uint64_t nb_desired_values,
200
187
 
201
188
 
202
189
extern "C" {
 
190
char **session_query(Session *session);
203
191
 
204
192
/** Get the file name of the MySQL binlog.
205
193
 * @return the name of the binlog file
228
216
int session_non_transactional_update(const Session *session);
229
217
 
230
218
/**
 
219
  Get the user thread's binary logging format
 
220
  @param session  user thread
 
221
  @return Value to be used as index into the binlog_format_names array
 
222
*/
 
223
int session_binlog_format(const Session *session);
 
224
 
 
225
/**
231
226
  Mark transaction to rollback and mark error as fatal to a sub-statement.
232
227
  @param  session   Thread handle
233
228
  @param  all   TRUE <=> rollback main transaction.