1095.3.27
by Stewart Smith
add missing table_proto.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
|
|
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 |
||
21 |
#ifndef DRIZZLED_TABLE_PROTO_H
|
|
22 |
#define DRIZZLED_TABLE_PROTO_H
|
|
23 |
||
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
24 |
namespace drizzled { |
25 |
||
1095.3.27
by Stewart Smith
add missing table_proto.h |
26 |
int drizzle_write_proto_file(const std::string file_name, |
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
27 |
message::Table *table_proto); |
1095.3.27
by Stewart Smith
add missing table_proto.h |
28 |
|
1183.1.29
by Brian Aker
Clean up interface so that Truncate sets the propper engine when |
29 |
int parse_table_proto(Session& session, |
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
30 |
message::Table &table, |
1095.3.27
by Stewart Smith
add missing table_proto.h |
31 |
TableShare *share); |
32 |
||
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
33 |
int fill_table_proto(message::Table *table_proto, |
1095.3.27
by Stewart Smith
add missing table_proto.h |
34 |
const char *table_name, |
35 |
List<CreateField> &create_fields, |
|
36 |
HA_CREATE_INFO *create_info, |
|
37 |
uint32_t keys, |
|
38 |
KEY *key_info); |
|
39 |
||
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
40 |
int rename_table_proto_file(const char *from, const char* to); |
41 |
int delete_table_proto_file(const char *file_name); |
|
42 |
||
1223.4.8
by Brian Aker
More table identifier love :) |
43 |
int rea_create_table(Session *session, |
44 |
TableIdentifier &identifier, |
|
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
45 |
message::Table *table_proto, |
46 |
HA_CREATE_INFO *create_info, |
|
47 |
List<CreateField> &create_field, |
|
48 |
uint32_t key_count,KEY *key_info); |
|
49 |
||
1273.2.18
by Stewart Smith
enum_field_types_to_field_message_type() now not static, so it can be used by others (create temp table) |
50 |
drizzled::message::Table::Field::FieldType enum_field_types_to_field_message_type(const enum_field_types type); |
51 |
||
1130.3.9
by Monty Taylor
Wrapped table_proto_write.cc code in namespace drizzled. |
52 |
} /* namespace drizzled */ |
53 |
||
1122.2.10
by Monty Taylor
Fixed all of the include guards. |
54 |
#endif /* DRIZZLED_TABLE_PROTO_H */ |