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 |
||
24 |
int drizzle_write_proto_file(const std::string file_name, |
|
25 |
drizzled::message::Table *table_proto); |
|
26 |
int create_table_proto_file(const char *file_name, |
|
27 |
const char *db, |
|
28 |
const char *table_name, |
|
29 |
drizzled::message::Table *table_proto, |
|
30 |
HA_CREATE_INFO *create_info, |
|
31 |
List<CreateField> &create_fields, |
|
32 |
uint32_t keys, |
|
33 |
KEY *key_info); |
|
34 |
||
35 |
int parse_table_proto(Session *session, |
|
36 |
drizzled::message::Table &table, |
|
37 |
TableShare *share); |
|
38 |
||
39 |
int fill_table_proto(drizzled::message::Table *table_proto, |
|
40 |
const char *table_name, |
|
41 |
List<CreateField> &create_fields, |
|
42 |
HA_CREATE_INFO *create_info, |
|
43 |
uint32_t keys, |
|
44 |
KEY *key_info); |
|
45 |
||
1130.1.19
by Monty Taylor
Added error reporting to plugin registration. |
46 |
int rea_create_table(Session *session, const char *path, |
47 |
const char *db, const char *table_name, |
|
48 |
drizzled::message::Table *table_proto, |
|
49 |
HA_CREATE_INFO *create_info, |
|
50 |
List<CreateField> &create_field, |
|
51 |
uint32_t key_count,KEY *key_info); |
|
1095.3.27
by Stewart Smith
add missing table_proto.h |
52 |
#endif
|