~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/base.h

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * @TODO Convert HA_XXX defines into enums and/or bitmaps
26
26
 */
27
27
 
28
 
#include "definitions.h"
 
28
#include <drizzled/definitions.h>
29
29
 
30
 
#ifndef DRIZZLED_BASE_H
31
 
#define DRIZZLED_BASE_H
 
30
#pragma once
32
31
 
33
32
namespace drizzled
34
33
{
87
86
  HA_KEY_ALG_HASH=      3               /* HASH keys (HEAP tables) */
88
87
};
89
88
 
90
 
        /* Index and table build methods */
91
 
 
92
 
enum ha_build_method {
93
 
  HA_BUILD_DEFAULT,
94
 
  HA_BUILD_ONLINE,
95
 
  HA_BUILD_OFFLINE
96
 
};
97
 
 
98
89
        /* The following is parameter to ha_extra() */
99
90
 
100
91
enum ha_extra_function {
419
410
 
420
411
/* For number of records */
421
412
typedef uint64_t        ha_rows;
422
 
inline static double rows2double(ha_rows rows)
423
 
{  
424
 
  return uint64_t2double(rows);
425
 
}
426
413
 
427
414
#define HA_POS_ERROR    (~ (::drizzled::ha_rows) 0)
428
415
#define HA_OFFSET_ERROR (~ (::drizzled::internal::my_off_t) 0)
441
428
 
442
429
} /* namespace drizzled */
443
430
 
444
 
#endif /* DRIZZLED_BASE_H */