Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/libmysql_macosx/include/myisam.h
#include <my_base.h>
#include <m_ctype.h>
#include "keycache.h"
#include "my_handler.h"

Ir al código fuente de este archivo.

Clases

struct  st_mi_isaminfo
struct  st_mi_create_info
struct  st_mi_keydef
struct  st_unique_def
struct  st_mi_decode_tree
struct  st_columndef
struct  st_sort_key_blocks
struct  st_mi_check_param
struct  st_sort_ft_buf
struct  st_sort_info

'defines'

#define MI_MAX_KEY   64
#define MI_MAX_KEY_SEG   16
#define MI_MAX_KEY_LENGTH   1000
#define MI_MAX_KEY_BUFF   (MI_MAX_KEY_LENGTH+MI_MAX_KEY_SEG*6+8+8)
#define MI_MAX_POSSIBLE_KEY_BUFF   (1024+6+6)
#define MI_MAX_POSSIBLE_KEY   64
#define MI_MAX_MSG_BUF   1024
#define MI_NAME_IEXT   ".MYI"
#define MI_NAME_DEXT   ".MYD"
#define MI_MAX_TEMP_LENGTH   2*1024L*1024L*1024L
#define MI_KEY_BLOCK_LENGTH   1024
#define MI_MIN_KEY_BLOCK_LENGTH   1024
#define MI_MAX_KEY_BLOCK_LENGTH   16384
#define mi_portable_sizeof_char_ptr   8
#define MI_UNIQUE_HASH_LENGTH   4
#define MYISAMCHK_REPAIR   1
#define MYISAMCHK_VERIFY   2
#define T_AUTO_INC   1
#define T_AUTO_REPAIR   2
#define T_BACKUP_DATA   4
#define T_CALC_CHECKSUM   8
#define T_CHECK   16
#define T_CHECK_ONLY_CHANGED   32
#define T_CREATE_MISSING_KEYS   64
#define T_DESCRIPT   128
#define T_DONT_CHECK_CHECKSUM   256
#define T_EXTEND   512
#define T_FAST   (1L << 10)
#define T_FORCE_CREATE   (1L << 11)
#define T_FORCE_UNIQUENESS   (1L << 12)
#define T_INFO   (1L << 13)
#define T_MEDIUM   (1L << 14)
#define T_QUICK   (1L << 15)
#define T_READONLY   (1L << 16)
#define T_REP   (1L << 17)
#define T_REP_BY_SORT   (1L << 18)
#define T_REP_PARALLEL   (1L << 19)
#define T_RETRY_WITHOUT_QUICK   (1L << 20)
#define T_SAFE_REPAIR   (1L << 21)
#define T_SILENT   (1L << 22)
#define T_SORT_INDEX   (1L << 23)
#define T_SORT_RECORDS   (1L << 24)
#define T_STATISTICS   (1L << 25)
#define T_UNPACK   (1L << 26)
#define T_UPDATE_STATE   (1L << 27)
#define T_VERBOSE   (1L << 28)
#define T_VERY_SILENT   (1L << 29)
#define T_WAIT_FOREVER   (1L << 30)
#define T_WRITE_LOOP   ((ulong) 1L << 31)
#define T_REP_ANY   (T_REP | T_REP_BY_SORT | T_REP_PARALLEL)
#define TT_USEFRM   1
#define O_NEW_INDEX   1
#define O_NEW_DATA   2
#define O_DATA_LOST   4

'typedefs'

typedef struct st_mi_isaminfo MI_ISAMINFO
typedef struct st_mi_create_info MI_CREATE_INFO
typedef struct st_myisam_info MI_INFO
typedef struct st_mi_keydef MI_KEYDEF
typedef struct st_unique_def MI_UNIQUEDEF
typedef struct st_mi_decode_tree MI_DECODE_TREE
typedef struct st_columndef MI_COLUMNDEF
typedef void(* invalidator_by_filename )(const char *filename)
typedef struct st_sort_key_blocks SORT_KEY_BLOCKS
typedef struct st_mi_check_param MI_CHECK
typedef struct st_sort_ft_buf SORT_FT_BUF
typedef struct st_sort_info SORT_INFO

Enumeraciones

enum  enum_mi_stats_method {
  MI_STATS_METHOD_NULLS_NOT_EQUAL, MI_STATS_METHOD_NULLS_EQUAL, MI_STATS_METHOD_IGNORE_NULLS, MI_STATS_METHOD_NULLS_NOT_EQUAL,
  MI_STATS_METHOD_NULLS_EQUAL
}

Funciones

int mi_close (struct st_myisam_info *file)
int mi_delete (struct st_myisam_info *file, const byte *buff)
struct st_myisam_info * mi_open (const char *name, int mode, uint wait_if_locked)
int mi_panic (enum ha_panic_function function)
int mi_rfirst (struct st_myisam_info *file, byte *buf, int inx)
int mi_rkey (struct st_myisam_info *file, byte *buf, int inx, const byte *key, uint key_len, enum ha_rkey_function search_flag)
int mi_rlast (struct st_myisam_info *file, byte *buf, int inx)
int mi_rnext (struct st_myisam_info *file, byte *buf, int inx)
int mi_rnext_same (struct st_myisam_info *info, byte *buf)
int mi_rprev (struct st_myisam_info *file, byte *buf, int inx)
int mi_rrnd (struct st_myisam_info *file, byte *buf, my_off_t pos)
int mi_scan_init (struct st_myisam_info *file)
int mi_scan (struct st_myisam_info *file, byte *buf)
int mi_rsame (struct st_myisam_info *file, byte *record, int inx)
int mi_rsame_with_pos (struct st_myisam_info *file, byte *record, int inx, my_off_t pos)
int mi_update (struct st_myisam_info *file, const byte *old, byte *new_record)
int mi_write (struct st_myisam_info *file, byte *buff)
my_off_t mi_position (struct st_myisam_info *file)
int mi_status (struct st_myisam_info *info, MI_ISAMINFO *x, uint flag)
int mi_lock_database (struct st_myisam_info *file, int lock_type)
int mi_create (const char *name, uint keys, MI_KEYDEF *keydef, uint columns, MI_COLUMNDEF *columndef, uint uniques, MI_UNIQUEDEF *uniquedef, MI_CREATE_INFO *create_info, uint flags)
int mi_delete_table (const char *name)
int mi_rename (const char *from, const char *to)
int mi_extra (struct st_myisam_info *file, enum ha_extra_function function, void *extra_arg)
ha_rows mi_records_in_range (struct st_myisam_info *info, int inx, key_range *min_key, key_range *max_key)
int mi_log (int activate_log)
int mi_is_changed (struct st_myisam_info *info)
int mi_delete_all_rows (struct st_myisam_info *info)
ulong _mi_calc_blob_length (uint length, const byte *pos)
uint mi_get_pointer_length (ulonglong file_length, uint def)
void myisamchk_init (MI_CHECK *param)
int chk_status (MI_CHECK *param, MI_INFO *info)
int chk_del (MI_CHECK *param, register MI_INFO *info, uint test_flag)
int chk_size (MI_CHECK *param, MI_INFO *info)
int chk_key (MI_CHECK *param, MI_INFO *info)
int chk_data_link (MI_CHECK *param, MI_INFO *info, int extend)
int mi_repair (MI_CHECK *param, register MI_INFO *info, my_string name, int rep_quick)
int mi_sort_index (MI_CHECK *param, register MI_INFO *info, my_string name)
int mi_repair_by_sort (MI_CHECK *param, register MI_INFO *info, const char *name, int rep_quick)
int mi_repair_parallel (MI_CHECK *param, register MI_INFO *info, const char *name, int rep_quick)
int change_to_newfile (const char *filename, const char *old_ext, const char *new_ext, uint raid_chunks, myf myflags)
int lock_file (MI_CHECK *param, File file, my_off_t start, int lock_type, const char *filetype, const char *filename)
void lock_memory (MI_CHECK *param)
void update_auto_increment_key (MI_CHECK *param, MI_INFO *info, my_bool repair)
int update_state_info (MI_CHECK *param, MI_INFO *info, uint update)
void update_key_parts (MI_KEYDEF *keyinfo, ulong *rec_per_key_part, ulonglong *unique, ulonglong records)
int filecopy (MI_CHECK *param, File to, File from, my_off_t start, my_off_t length, const char *type)
int movepoint (MI_INFO *info, byte *record, my_off_t oldpos, my_off_t newpos, uint prot_key)
int write_data_suffix (SORT_INFO *sort_info, my_bool fix_datafile)
int test_if_almost_full (MI_INFO *info)
int recreate_table (MI_CHECK *param, MI_INFO **org_info, char *filename)
void mi_disable_non_unique_index (MI_INFO *info, ha_rows rows)
my_bool mi_test_if_sort_rep (MI_INFO *info, ha_rows rows, ulonglong key_map, my_bool force)
int mi_init_bulk_insert (MI_INFO *info, ulong cache_size, ha_rows rows)
void mi_flush_bulk_insert (MI_INFO *info, uint inx)
void mi_end_bulk_insert (MI_INFO *info)
int mi_assign_to_key_cache (MI_INFO *info, ulonglong key_map, KEY_CACHE *key_cache)
void mi_change_key_cache (KEY_CACHE *old_key_cache, KEY_CACHE *new_key_cache)
int mi_preload (MI_INFO *info, ulonglong key_map, my_bool ignore_leaves)

Variables

my_string myisam_log_filename
uint myisam_block_size
my_bool myisam_flush
my_bool myisam_delay_key_write
my_bool myisam_single_user
my_bool myisam_concurrent_insert
my_off_t myisam_max_temp_length
my_off_t myisam_max_extra_temp_length
ulong myisam_bulk_insert_tree_size
ulong myisam_data_pointer_size

Documentación de los 'defines'

#define MI_KEY_BLOCK_LENGTH   1024
#define MI_MAX_KEY   64
#define MI_MAX_KEY_BLOCK_LENGTH   16384
#define MI_MAX_KEY_BUFF   (MI_MAX_KEY_LENGTH+MI_MAX_KEY_SEG*6+8+8)
#define MI_MAX_KEY_LENGTH   1000
#define MI_MAX_KEY_SEG   16
#define MI_MAX_MSG_BUF   1024
#define MI_MAX_POSSIBLE_KEY   64
#define MI_MAX_POSSIBLE_KEY_BUFF   (1024+6+6)
#define MI_MAX_TEMP_LENGTH   2*1024L*1024L*1024L
#define MI_MIN_KEY_BLOCK_LENGTH   1024
#define MI_NAME_DEXT   ".MYD"
#define MI_NAME_IEXT   ".MYI"
#define mi_portable_sizeof_char_ptr   8
#define MI_UNIQUE_HASH_LENGTH   4
#define MYISAMCHK_REPAIR   1
#define MYISAMCHK_VERIFY   2
#define O_DATA_LOST   4
#define O_NEW_DATA   2
#define O_NEW_INDEX   1
#define T_AUTO_INC   1
#define T_AUTO_REPAIR   2
#define T_BACKUP_DATA   4
#define T_CALC_CHECKSUM   8
#define T_CHECK   16
#define T_CHECK_ONLY_CHANGED   32
#define T_CREATE_MISSING_KEYS   64
#define T_DESCRIPT   128
#define T_DONT_CHECK_CHECKSUM   256
#define T_EXTEND   512
#define T_FAST   (1L << 10)
#define T_FORCE_CREATE   (1L << 11)
#define T_FORCE_UNIQUENESS   (1L << 12)
#define T_INFO   (1L << 13)
#define T_MEDIUM   (1L << 14)
#define T_QUICK   (1L << 15)
#define T_READONLY   (1L << 16)
#define T_REP   (1L << 17)
#define T_REP_ANY   (T_REP | T_REP_BY_SORT | T_REP_PARALLEL)
#define T_REP_BY_SORT   (1L << 18)
#define T_REP_PARALLEL   (1L << 19)
#define T_RETRY_WITHOUT_QUICK   (1L << 20)
#define T_SAFE_REPAIR   (1L << 21)
#define T_SILENT   (1L << 22)
#define T_SORT_INDEX   (1L << 23)
#define T_SORT_RECORDS   (1L << 24)
#define T_STATISTICS   (1L << 25)
#define T_UNPACK   (1L << 26)
#define T_UPDATE_STATE   (1L << 27)
#define T_VERBOSE   (1L << 28)
#define T_VERY_SILENT   (1L << 29)
#define T_WAIT_FOREVER   (1L << 30)
#define T_WRITE_LOOP   ((ulong) 1L << 31)
#define TT_USEFRM   1

Documentación de los 'typedefs'

typedef void(* invalidator_by_filename)(const char *filename)
typedef struct st_mi_check_param MI_CHECK
typedef struct st_columndef MI_COLUMNDEF
typedef struct st_myisam_info MI_INFO
typedef struct st_mi_isaminfo MI_ISAMINFO
typedef struct st_mi_keydef MI_KEYDEF
typedef struct st_unique_def MI_UNIQUEDEF
typedef struct st_sort_ft_buf SORT_FT_BUF
typedef struct st_sort_info SORT_INFO

Documentación de las enumeraciones

Valores de enumeraciones:
MI_STATS_METHOD_NULLS_NOT_EQUAL 
MI_STATS_METHOD_NULLS_EQUAL 
MI_STATS_METHOD_IGNORE_NULLS 
MI_STATS_METHOD_NULLS_NOT_EQUAL 
MI_STATS_METHOD_NULLS_EQUAL 

Documentación de las funciones

ulong _mi_calc_blob_length ( uint  length,
const byte pos 
)
int change_to_newfile ( const char *  filename,
const char *  old_ext,
const char *  new_ext,
uint  raid_chunks,
myf  myflags 
)
int chk_data_link ( MI_CHECK param,
MI_INFO info,
int  extend 
)
int chk_del ( MI_CHECK param,
register MI_INFO info,
uint  test_flag 
)
int chk_key ( MI_CHECK param,
MI_INFO info 
)
int chk_size ( MI_CHECK param,
MI_INFO info 
)
int chk_status ( MI_CHECK param,
MI_INFO info 
)
int filecopy ( MI_CHECK param,
File  to,
File  from,
my_off_t  start,
my_off_t  length,
const char *  type 
)
int lock_file ( MI_CHECK param,
File  file,
my_off_t  start,
int  lock_type,
const char *  filetype,
const char *  filename 
)
void lock_memory ( MI_CHECK param)
int mi_assign_to_key_cache ( MI_INFO info,
ulonglong  key_map,
KEY_CACHE key_cache 
)
void mi_change_key_cache ( KEY_CACHE old_key_cache,
KEY_CACHE new_key_cache 
)
int mi_close ( struct st_myisam_info *  file)
int mi_create ( const char *  name,
uint  keys,
MI_KEYDEF keydef,
uint  columns,
MI_COLUMNDEF columndef,
uint  uniques,
MI_UNIQUEDEF uniquedef,
MI_CREATE_INFO create_info,
uint  flags 
)
int mi_delete ( struct st_myisam_info *  file,
const byte buff 
)
int mi_delete_all_rows ( struct st_myisam_info *  info)
int mi_delete_table ( const char *  name)
void mi_disable_non_unique_index ( MI_INFO info,
ha_rows  rows 
)
void mi_end_bulk_insert ( MI_INFO info)
int mi_extra ( struct st_myisam_info *  file,
enum ha_extra_function  function,
void *  extra_arg 
)
void mi_flush_bulk_insert ( MI_INFO info,
uint  inx 
)
uint mi_get_pointer_length ( ulonglong  file_length,
uint  def 
)
int mi_init_bulk_insert ( MI_INFO info,
ulong  cache_size,
ha_rows  rows 
)
int mi_is_changed ( struct st_myisam_info *  info)
int mi_lock_database ( struct st_myisam_info *  file,
int  lock_type 
)
int mi_log ( int  activate_log)
struct st_myisam_info* mi_open ( const char *  name,
int  mode,
uint  wait_if_locked 
) [read]
int mi_panic ( enum ha_panic_function  function)
my_off_t mi_position ( struct st_myisam_info *  file)
int mi_preload ( MI_INFO info,
ulonglong  key_map,
my_bool  ignore_leaves 
)
ha_rows mi_records_in_range ( struct st_myisam_info *  info,
int  inx,
key_range min_key,
key_range max_key 
)
int mi_rename ( const char *  from,
const char *  to 
)
int mi_repair ( MI_CHECK param,
register MI_INFO info,
my_string  name,
int  rep_quick 
)
int mi_repair_by_sort ( MI_CHECK param,
register MI_INFO info,
const char *  name,
int  rep_quick 
)
int mi_repair_parallel ( MI_CHECK param,
register MI_INFO info,
const char *  name,
int  rep_quick 
)
int mi_rfirst ( struct st_myisam_info *  file,
byte buf,
int  inx 
)
int mi_rkey ( struct st_myisam_info *  file,
byte buf,
int  inx,
const byte key,
uint  key_len,
enum ha_rkey_function  search_flag 
)
int mi_rlast ( struct st_myisam_info *  file,
byte buf,
int  inx 
)
int mi_rnext ( struct st_myisam_info *  file,
byte buf,
int  inx 
)
int mi_rnext_same ( struct st_myisam_info *  info,
byte buf 
)
int mi_rprev ( struct st_myisam_info *  file,
byte buf,
int  inx 
)
int mi_rrnd ( struct st_myisam_info *  file,
byte buf,
my_off_t  pos 
)
int mi_rsame ( struct st_myisam_info *  file,
byte record,
int  inx 
)
int mi_rsame_with_pos ( struct st_myisam_info *  file,
byte record,
int  inx,
my_off_t  pos 
)
int mi_scan ( struct st_myisam_info *  file,
byte buf 
)
int mi_scan_init ( struct st_myisam_info *  file)
int mi_sort_index ( MI_CHECK param,
register MI_INFO info,
my_string  name 
)
int mi_status ( struct st_myisam_info *  info,
MI_ISAMINFO x,
uint  flag 
)
my_bool mi_test_if_sort_rep ( MI_INFO info,
ha_rows  rows,
ulonglong  key_map,
my_bool  force 
)
int mi_update ( struct st_myisam_info *  file,
const byte old,
byte new_record 
)
int mi_write ( struct st_myisam_info *  file,
byte buff 
)
int movepoint ( MI_INFO info,
byte record,
my_off_t  oldpos,
my_off_t  newpos,
uint  prot_key 
)
void myisamchk_init ( MI_CHECK param)
int recreate_table ( MI_CHECK param,
MI_INFO **  org_info,
char *  filename 
)
int test_if_almost_full ( MI_INFO info)
void update_auto_increment_key ( MI_CHECK param,
MI_INFO info,
my_bool  repair 
)
void update_key_parts ( MI_KEYDEF keyinfo,
ulong rec_per_key_part,
ulonglong unique,
ulonglong  records 
)
int update_state_info ( MI_CHECK param,
MI_INFO info,
uint  update 
)
int write_data_suffix ( SORT_INFO sort_info,
my_bool  fix_datafile 
)

Documentación de las variables

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'