drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
handler_structs.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2008 Sun Microsystems, Inc.
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#pragma once
21
22
#include <sys/time.h>
23
#include <time.h>
24
25
#include <drizzled/common_fwd.h>
26
#include <drizzled/base.h>
27
#include <
drizzled/definitions.h
>
28
#include <drizzled/util/data_ref.h>
29
#include <drizzled/message/table.h>
30
31
namespace
drizzled
{
32
33
typedef
struct
st_ha_create_information
34
{
35
const
charset_info_st
*table_charset, *default_table_charset;
36
const
char
*alias;
37
uint64_t auto_increment_value;
38
uint32_t table_options;
39
uint32_t used_fields;
40
plugin::StorageEngine
*db_type;
41
bool
table_existed;
/* 1 in create if table existed */
42
43
st_ha_create_information() :
44
table_charset(0),
45
default_table_charset(0),
46
alias(0),
47
auto_increment_value(0),
48
table_options(0),
49
used_fields(0),
50
db_type(0),
51
table_existed(0)
52
{ }
53
} HA_CREATE_INFO;
54
55
typedef
struct
st_ha_alter_information
56
{
57
KeyInfo
*key_info_buffer;
58
uint32_t key_count;
59
uint32_t index_drop_count;
60
uint32_t *index_drop_buffer;
61
uint32_t index_add_count;
62
uint32_t *index_add_buffer;
63
void
*data;
64
65
st_ha_alter_information() :
66
key_info_buffer(0),
67
key_count(0),
68
index_drop_count(0),
69
index_drop_buffer(0),
70
index_add_count(0),
71
index_add_buffer(0),
72
data(0)
73
{ }
74
75
} HA_ALTER_INFO;
76
77
78
struct
KEY_CREATE_INFO
79
{
80
KEY_CREATE_INFO() :
81
algorithm(drizzled::message::Table::Index::UNKNOWN_INDEX),
82
block_size(0)
83
{
84
}
85
86
drizzled::message::Table::Index::IndexType algorithm;
87
uint32_t block_size;
88
str_ref comment;
89
};
90
91
92
typedef
struct
st_range_seq_if
93
{
94
/*
95
Initialize the traversal of range sequence
96
97
SYNOPSIS
98
init()
99
init_params The seq_init_param parameter
100
n_ranges The number of ranges obtained
101
flags A combination of HA_MRR_SINGLE_POINT, HA_MRR_FIXED_KEY
102
103
RETURN
104
An opaque value to be used as RANGE_SEQ_IF::next() parameter
105
*/
106
range_seq_t (*init)(
void
*init_params, uint32_t n_ranges, uint32_t flags);
107
108
109
/*
110
Get the next range in the range sequence
111
112
SYNOPSIS
113
next()
114
seq The value returned by RANGE_SEQ_IF::init()
115
range OUT Information about the next range
116
117
RETURN
118
0 - Ok, the range structure filled with info about the next range
119
1 - No more ranges
120
*/
121
uint32_t (*next) (range_seq_t seq,
KEY_MULTI_RANGE
*range);
122
} RANGE_SEQ_IF;
123
124
}
/* namespace drizzled */
125
drizzled::KEY_MULTI_RANGE
Definition
base.h:394
drizzled::KeyInfo
Definition
key_info.h:34
drizzled::plugin::StorageEngine
Definition
storage_engine.h:127
definitions.h
drizzled
TODO: Rename this file - func.h is stupid.
Definition
abort_exception.h:27
drizzled::charset_info_st
Definition
charset.h:226
drizzled::st_range_seq_if
Definition
handler_structs.h:93
← Back to Drizzle docs
drizzled
handler_structs.h
Generated by
1.15.0