~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/helper_methods.h

  • Committer: Brian Aker
  • Date: 2010-02-19 23:07:45 UTC
  • mto: (1273.13.97 build)
  • mto: This revision was merged to the branch mainline in revision 1309.
  • Revision ID: brian@gaz-20100219230745-cmurfbxj845it9z7
This remove the original info_schema system for the server. More still to
cut, but we are on our way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2009 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; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef PLUGIN_INFO_SCHEMA_HELPER_METHODS_H
22
 
#define PLUGIN_INFO_SCHEMA_HELPER_METHODS_H
23
 
 
24
 
#include "drizzled/plugin/info_schema_table.h"
25
 
 
26
 
void store_key_column_usage(drizzled::Table *table, 
27
 
                            drizzled::LEX_STRING *db_name,
28
 
                            drizzled::LEX_STRING *table_name, 
29
 
                            const char *key_name,
30
 
                            uint32_t key_len, 
31
 
                            const char *con_type, 
32
 
                            uint32_t con_len,
33
 
                            int64_t idx);
34
 
 
35
 
/**
36
 
 * Iterate through the given vector of columns and delete the memory that
37
 
 * has been allocated for them.
38
 
 *
39
 
 * @param[out] cols vector to clear and de-allocate memory from
40
 
 */
41
 
void clearColumns(std::vector<const drizzled::plugin::ColumnInfo *> &cols);
42
 
 
43
 
#endif /* PLUGIN_INFO_SCHEMA_HELPER_METHODS_H */