组合类型 |
struct | st_key_range |
struct | st_key_multi_range |
宏定义 |
#define | CHSIZE_USED |
#define | EOVERFLOW 84 |
#define | HA_OPEN_ABORT_IF_LOCKED 0 |
#define | HA_OPEN_WAIT_IF_LOCKED 1 |
#define | HA_OPEN_IGNORE_IF_LOCKED 2 |
#define | HA_OPEN_TMP_TABLE 4 |
#define | HA_OPEN_DELAY_KEY_WRITE 8 |
#define | HA_OPEN_ABORT_IF_CRASHED 16 |
#define | HA_OPEN_FOR_REPAIR 32 |
#define | HA_OPEN_FROM_SQL_LAYER 64 |
#define | HA_OPEN_MMAP 128 |
#define | HA_OPEN_COPY 256 |
#define | HA_OPEN_INTERNAL_TABLE 512 |
#define | HA_EXTRA_PREPARE_FOR_DELETE HA_EXTRA_PREPARE_FOR_DROP |
#define | HA_MAX_KEYTYPE 31 |
#define | HA_NOSAME 1 |
#define | HA_PACK_KEY 2 |
#define | HA_AUTO_KEY 16 |
#define | HA_BINARY_PACK_KEY 32 |
#define | HA_FULLTEXT 128 |
#define | HA_UNIQUE_CHECK 256 |
#define | HA_SPATIAL 1024 |
#define | HA_NULL_ARE_EQUAL 2048 |
#define | HA_GENERATED_KEY 8192 |
#define | HA_RTREE_INDEX 16384 |
#define | HA_KEYFLAG_MASK |
#define | HA_KEY_HAS_PART_KEY_SEG 65536 |
#define | HA_SPACE_PACK_USED 4 |
#define | HA_VAR_LENGTH_KEY 8 |
#define | HA_NULL_PART_KEY 64 |
#define | HA_USES_COMMENT 4096 |
#define | HA_USES_PARSER 16384 |
#define | HA_USES_BLOCK_SIZE ((uint) 32768) |
#define | HA_SORT_ALLOWS_SAME 512 |
#define | HA_END_SPACE_KEY 0 |
#define | HA_SPACE_PACK 1 |
#define | HA_PART_KEY_SEG 4 |
#define | HA_VAR_LENGTH_PART 8 |
#define | HA_NULL_PART 16 |
#define | HA_BLOB_PART 32 |
#define | HA_SWAP_KEY 64 |
#define | HA_REVERSE_SORT 128 |
#define | HA_NO_SORT 256 |
#define | HA_END_SPACE_ARE_EQUAL 512 |
#define | HA_BIT_PART 1024 |
#define | HA_OPTION_PACK_RECORD 1 |
#define | HA_OPTION_PACK_KEYS 2 |
#define | HA_OPTION_COMPRESS_RECORD 4 |
#define | HA_OPTION_LONG_BLOB_PTR 8 |
#define | HA_OPTION_TMP_TABLE 16 |
#define | HA_OPTION_CHECKSUM 32 |
#define | HA_OPTION_DELAY_KEY_WRITE 64 |
#define | HA_OPTION_NO_PACK_KEYS 128 |
#define | HA_OPTION_CREATE_FROM_ENGINE 256 |
#define | HA_OPTION_RELIES_ON_SQL_LAYER 512 |
#define | HA_OPTION_NULL_FIELDS 1024 |
#define | HA_OPTION_PAGE_CHECKSUM 2048 |
#define | HA_OPTION_TEMP_COMPRESS_RECORD (1L << 15) |
#define | HA_OPTION_READ_ONLY_DATA (1L << 16) |
#define | HA_OPTION_NO_CHECKSUM (1L << 17) |
#define | HA_OPTION_NO_DELAY_KEY_WRITE (1L << 18) |
#define | HA_DONT_TOUCH_DATA 1 |
#define | HA_PACK_RECORD 2 |
#define | HA_CREATE_TMP_TABLE 4 |
#define | HA_CREATE_CHECKSUM 8 |
#define | HA_CREATE_KEEP_FILES 16 |
#define | HA_CREATE_PAGE_CHECKSUM 32 |
#define | HA_CREATE_DELAY_KEY_WRITE 64 |
#define | HA_CREATE_RELIES_ON_SQL_LAYER 128 |
#define | HA_STATUS_POS 1 |
#define | HA_STATUS_NO_LOCK 2 |
#define | HA_STATUS_TIME 4 |
#define | HA_STATUS_CONST 8 |
#define | HA_STATUS_VARIABLE 16 |
#define | HA_STATUS_ERRKEY 32 |
#define | HA_STATUS_AUTO 64 |
#define | HA_ERR_FIRST 120 |
#define | HA_ERR_KEY_NOT_FOUND 120 |
#define | HA_ERR_FOUND_DUPP_KEY 121 |
#define | HA_ERR_INTERNAL_ERROR 122 |
#define | HA_ERR_RECORD_CHANGED 123 |
#define | HA_ERR_WRONG_INDEX 124 |
#define | HA_ERR_CRASHED 126 |
#define | HA_ERR_WRONG_IN_RECORD 127 |
#define | HA_ERR_OUT_OF_MEM 128 |
#define | HA_ERR_NOT_A_TABLE 130 |
#define | HA_ERR_WRONG_COMMAND 131 |
#define | HA_ERR_OLD_FILE 132 |
#define | HA_ERR_NO_ACTIVE_RECORD 133 |
#define | HA_ERR_RECORD_DELETED 134 |
#define | HA_ERR_RECORD_FILE_FULL 135 |
#define | HA_ERR_INDEX_FILE_FULL 136 |
#define | HA_ERR_END_OF_FILE 137 |
#define | HA_ERR_UNSUPPORTED 138 |
#define | HA_ERR_TO_BIG_ROW 139 |
#define | HA_WRONG_CREATE_OPTION 140 |
#define | HA_ERR_FOUND_DUPP_UNIQUE 141 |
#define | HA_ERR_UNKNOWN_CHARSET 142 |
#define | HA_ERR_WRONG_MRG_TABLE_DEF 143 |
#define | HA_ERR_CRASHED_ON_REPAIR 144 |
#define | HA_ERR_CRASHED_ON_USAGE 145 |
#define | HA_ERR_LOCK_WAIT_TIMEOUT 146 |
#define | HA_ERR_LOCK_TABLE_FULL 147 |
#define | HA_ERR_READ_ONLY_TRANSACTION 148 |
#define | HA_ERR_LOCK_DEADLOCK 149 |
#define | HA_ERR_CANNOT_ADD_FOREIGN 150 |
#define | HA_ERR_NO_REFERENCED_ROW 151 |
#define | HA_ERR_ROW_IS_REFERENCED 152 |
#define | HA_ERR_NO_SAVEPOINT 153 |
#define | HA_ERR_NON_UNIQUE_BLOCK_SIZE 154 |
#define | HA_ERR_NO_SUCH_TABLE 155 |
#define | HA_ERR_TABLE_EXIST 156 |
#define | HA_ERR_NO_CONNECTION 157 |
#define | HA_ERR_NULL_IN_SPATIAL 158 |
#define | HA_ERR_TABLE_DEF_CHANGED 159 |
#define | HA_ERR_NO_PARTITION_FOUND 160 |
#define | HA_ERR_RBR_LOGGING_FAILED 161 |
#define | HA_ERR_DROP_INDEX_FK 162 |
#define | HA_ERR_FOREIGN_DUPLICATE_KEY 163 |
#define | HA_ERR_TABLE_NEEDS_UPGRADE 164 |
#define | HA_ERR_TABLE_READONLY 165 |
#define | HA_ERR_AUTOINC_READ_FAILED 166 |
#define | HA_ERR_AUTOINC_ERANGE 167 |
#define | HA_ERR_GENERIC 168 |
#define | HA_ERR_RECORD_IS_THE_SAME 169 |
#define | HA_ERR_LOGGING_IMPOSSIBLE 170 |
#define | HA_ERR_TABLESPACE_EXIST 171 |
#define | HA_ERR_CORRUPT_EVENT 172 |
#define | HA_ERR_NEW_FILE 173 |
#define | HA_ERR_ROWS_EVENT_APPLY 174 |
#define | HA_ERR_INITIALIZATION 175 |
#define | HA_ERR_FILE_TOO_SHORT 176 |
#define | HA_ERR_WRONG_CRC 177 |
#define | HA_ERR_LOCK_OR_ACTIVE_TRANSACTION 178 |
#define | HA_ERR_NO_SUCH_TABLESPACE 179 |
#define | HA_ERR_TABLESPACE_NOT_EMPTY 180 |
#define | HA_ERR_TABLESPACE_DATAFILE_EXIST 181 |
#define | HA_ERR_ROW_NOT_VISIBLE 182 |
#define | HA_ERR_LAST 182 |
#define | HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1) |
#define | HA_NAMELEN 64 |
#define | NO_SUCH_KEY (~(uint)0) |
#define | HA_WHOLE_KEY (~(key_part_map)0) |
#define | SEARCH_FIND 1 |
#define | SEARCH_NO_FIND 2 |
#define | SEARCH_SAME 4 |
#define | SEARCH_BIGGER 8 |
#define | SEARCH_SMALLER 16 |
#define | SEARCH_SAVE_BUFF 32 |
#define | SEARCH_UPDATE 64 |
#define | SEARCH_PREFIX 128 |
#define | SEARCH_LAST 256 |
#define | MBR_CONTAIN 512 |
#define | MBR_INTERSECT 1024 |
#define | MBR_WITHIN 2048 |
#define | MBR_DISJOINT 4096 |
#define | MBR_EQUAL 8192 |
#define | MBR_DATA 16384 |
#define | SEARCH_NULL_ARE_EQUAL 32768 |
#define | SEARCH_NULL_ARE_NOT_EQUAL 65536 |
#define | SEARCH_INSERT SEARCH_NULL_ARE_NOT_EQUAL*2 |
#define | SEARCH_PART_KEY SEARCH_INSERT*2 |
#define | SEARCH_USER_KEY_HAS_TRANSID SEARCH_PART_KEY*2 |
#define | SEARCH_PAGE_KEY_HAS_TRANSID SEARCH_USER_KEY_HAS_TRANSID*2 |
#define | QUICK_USED 1 |
#define | READ_CACHE_USED 2 |
#define | READ_CHECK_USED 4 |
#define | KEY_READ_USED 8 |
#define | WRITE_CACHE_USED 16 |
#define | OPT_NO_ROWS 32 |
#define | HA_STATE_CHANGED 1 |
#define | HA_STATE_AKTIV 2 |
#define | HA_STATE_WRITTEN 4 |
#define | HA_STATE_DELETED 8 |
#define | HA_STATE_NEXT_FOUND 16 |
#define | HA_STATE_PREV_FOUND 32 |
#define | HA_STATE_NO_KEY 64 |
#define | HA_STATE_KEY_CHANGED 128 |
#define | HA_STATE_WRITE_AT_END 256 |
#define | HA_STATE_BUFF_SAVED 512 |
#define | HA_STATE_ROW_CHANGED 1024 |
#define | HA_STATE_EXTEND_BLOCK 2048 |
#define | HA_STATE_RNEXT_SAME 4096 |
#define | NO_MIN_RANGE 1 |
#define | NO_MAX_RANGE 2 |
#define | NEAR_MIN 4 |
#define | NEAR_MAX 8 |
#define | UNIQUE_RANGE 16 |
#define | EQ_RANGE 32 |
#define | NULL_RANGE 64 |
#define | GEOM_FLAG 128 |
#define | SKIP_RANGE 256 |
#define | EMPTY_RANGE 512 |
#define | rows2double(A) (double) (A) |
#define | HA_POS_ERROR (~ (ha_rows) 0) |
#define | HA_OFFSET_ERROR (~ (my_off_t) 0) |
#define | MAX_FILE_SIZE LONGLONG_MAX |
#define | HA_VARCHAR_PACKLENGTH(field_length) ((field_length) < 256 ? 1 :2) |
类型定义 |
typedef ulong | key_part_map |
typedef struct st_key_range | key_range |
typedef struct st_key_multi_range | KEY_MULTI_RANGE |
typedef ulong | ha_rows |
typedef void(* | invalidator_by_filename )(const char *filename) |
枚举 |
enum | ha_rkey_function {
HA_READ_KEY_EXACT,
HA_READ_KEY_OR_NEXT,
HA_READ_KEY_OR_PREV,
HA_READ_AFTER_KEY,
HA_READ_BEFORE_KEY,
HA_READ_PREFIX,
HA_READ_PREFIX_LAST,
HA_READ_PREFIX_LAST_OR_PREV,
HA_READ_MBR_CONTAIN,
HA_READ_MBR_INTERSECT,
HA_READ_MBR_WITHIN,
HA_READ_MBR_DISJOINT,
HA_READ_MBR_EQUAL
} |
enum | ha_key_alg {
HA_KEY_ALG_UNDEF = 0,
HA_KEY_ALG_BTREE = 1,
HA_KEY_ALG_RTREE = 2,
HA_KEY_ALG_HASH = 3,
HA_KEY_ALG_FULLTEXT = 4
} |
enum | ha_build_method { HA_BUILD_DEFAULT,
HA_BUILD_ONLINE,
HA_BUILD_OFFLINE
} |
enum | ha_storage_media { HA_SM_DEFAULT = 0,
HA_SM_DISK = 1,
HA_SM_MEMORY = 2
} |
enum | ha_extra_function {
HA_EXTRA_NORMAL = 0,
HA_EXTRA_QUICK = 1,
HA_EXTRA_NOT_USED = 2,
HA_EXTRA_CACHE = 3,
HA_EXTRA_NO_CACHE = 4,
HA_EXTRA_NO_READCHECK = 5,
HA_EXTRA_READCHECK = 6,
HA_EXTRA_KEYREAD = 7,
HA_EXTRA_NO_KEYREAD = 8,
HA_EXTRA_NO_USER_CHANGE = 9,
HA_EXTRA_KEY_CACHE = 10,
HA_EXTRA_NO_KEY_CACHE = 11,
HA_EXTRA_WAIT_LOCK = 12,
HA_EXTRA_NO_WAIT_LOCK = 13,
HA_EXTRA_WRITE_CACHE = 14,
HA_EXTRA_FLUSH_CACHE = 15,
HA_EXTRA_NO_KEYS = 16,
HA_EXTRA_KEYREAD_CHANGE_POS = 17,
HA_EXTRA_REMEMBER_POS = 18,
HA_EXTRA_RESTORE_POS = 19,
HA_EXTRA_REINIT_CACHE = 20,
HA_EXTRA_FORCE_REOPEN = 21,
HA_EXTRA_FLUSH,
HA_EXTRA_NO_ROWS,
HA_EXTRA_RESET_STATE,
HA_EXTRA_IGNORE_DUP_KEY,
HA_EXTRA_NO_IGNORE_DUP_KEY,
HA_EXTRA_PREPARE_FOR_DROP,
HA_EXTRA_PREPARE_FOR_UPDATE,
HA_EXTRA_PRELOAD_BUFFER_SIZE,
HA_EXTRA_CHANGE_KEY_TO_UNIQUE,
HA_EXTRA_CHANGE_KEY_TO_DUP,
HA_EXTRA_KEYREAD_PRESERVE_FIELDS,
HA_EXTRA_MMAP,
HA_EXTRA_IGNORE_NO_KEY,
HA_EXTRA_NO_IGNORE_NO_KEY,
HA_EXTRA_MARK_AS_LOG_TABLE,
HA_EXTRA_WRITE_CAN_REPLACE,
HA_EXTRA_WRITE_CANNOT_REPLACE,
HA_EXTRA_DELETE_CANNOT_BATCH,
HA_EXTRA_UPDATE_CANNOT_BATCH,
HA_EXTRA_INSERT_WITH_UPDATE,
HA_EXTRA_PREPARE_FOR_RENAME,
HA_EXTRA_ADD_CHILDREN_LIST,
HA_EXTRA_ATTACH_CHILDREN,
HA_EXTRA_IS_ATTACHED_CHILDREN,
HA_EXTRA_DETACH_CHILDREN,
HA_EXTRA_ORDERBY_LIMIT,
HA_EXTRA_NO_ORDERBY_LIMIT,
HA_EXTRA_PREPARE_FOR_FORCED_CLOSE,
HA_EXTRA_ALLOW_LOG_DELETE
} |
enum | ha_panic_function { HA_PANIC_CLOSE,
HA_PANIC_WRITE,
HA_PANIC_READ
} |
enum | ha_base_keytype {
HA_KEYTYPE_END = 0,
HA_KEYTYPE_TEXT = 1,
HA_KEYTYPE_BINARY = 2,
HA_KEYTYPE_SHORT_INT = 3,
HA_KEYTYPE_LONG_INT = 4,
HA_KEYTYPE_FLOAT = 5,
HA_KEYTYPE_DOUBLE = 6,
HA_KEYTYPE_NUM = 7,
HA_KEYTYPE_USHORT_INT = 8,
HA_KEYTYPE_ULONG_INT = 9,
HA_KEYTYPE_LONGLONG = 10,
HA_KEYTYPE_ULONGLONG = 11,
HA_KEYTYPE_INT24 = 12,
HA_KEYTYPE_UINT24 = 13,
HA_KEYTYPE_INT8 = 14,
HA_KEYTYPE_VARTEXT1 = 15,
HA_KEYTYPE_VARBINARY1 = 16,
HA_KEYTYPE_VARTEXT2 = 17,
HA_KEYTYPE_VARBINARY2 = 18,
HA_KEYTYPE_BIT = 19
} |
enum | en_fieldtype {
FIELD_LAST = -1,
FIELD_NORMAL,
FIELD_SKIP_ENDSPACE,
FIELD_SKIP_PRESPACE,
FIELD_SKIP_ZERO,
FIELD_BLOB,
FIELD_CONSTANT,
FIELD_INTERVALL,
FIELD_ZERO,
FIELD_VARCHAR,
FIELD_CHECK,
FIELD_enum_val_count
} |
enum | data_file_type { STATIC_RECORD,
DYNAMIC_RECORD,
COMPRESSED_RECORD,
BLOCK_RECORD
} |