~drizzle-trunk/drizzle/development

575.4.6 by Monty Taylor
Removed my_getwd.
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
1122.2.10 by Monty Taylor
Fixed all of the include guards.
21
#ifndef DRIZZLED_DB_H
22
#define DRIZZLED_DB_H
575.4.6 by Monty Taylor
Removed my_getwd.
23
1273.13.1 by Brian Aker
First pass through data dictionary.
24
#define DATA_DICTIONARY "data_dictionary"
25
1089.10.1 by Stewart Smith
fix SHOW CREATE DATABASE for default collation. Move database metadata reading code around to be a bit more sane.
26
namespace drizzled { namespace message { class Schema; } }
27
1273 by Brian Aker
Revert db patch.
28
bool mysql_create_db(Session *session, const char *db, drizzled::message::Schema *schema_message, bool is_if_not_exists);
29
bool mysql_alter_db(Session *session, const char *db, drizzled::message::Schema *schema_message);
30
bool mysql_rm_db(Session *session, char *db, bool if_exists);
31
bool mysql_change_db(Session *session, const LEX_STRING *new_db_name, bool force_switch);
575.4.6 by Monty Taylor
Removed my_getwd.
32
584.1.15 by Monty Taylor
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes.
33
bool check_db_dir_existence(const char *db_name);
1273.13.38 by Brian Aker
Add in new show work.
34
int get_database_metadata(const std::string &dbname, drizzled::message::Schema &db);
1089.10.1 by Stewart Smith
fix SHOW CREATE DATABASE for default collation. Move database metadata reading code around to be a bit more sane.
35
1014.3.1 by Brian Aker
Simplify the calling stack for getting schema collation. We need to extend
36
const CHARSET_INFO *get_default_db_collation(const char *db_name);
811.1.2 by Stewart Smith
remove existing db.opt implementation.
37
1122.2.10 by Monty Taylor
Fixed all of the include guards.
38
#endif /* DRIZZLED_DB_H */