1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
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.
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.
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
21
#ifndef DRIZZLED_TABLE_PROTO_H
22
#define DRIZZLED_TABLE_PROTO_H
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,
28
const char *table_name,
29
drizzled::message::Table *table_proto,
30
HA_CREATE_INFO *create_info,
31
List<CreateField> &create_fields,
35
int parse_table_proto(Session *session,
36
drizzled::message::Table &table,
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,