Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
show.h
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, Inc.
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
#pragma once
22
23
#include <drizzled/statement/select.h>
24
25
namespace
drizzled {
26
namespace
statement {
27
28
class
Show
:
public
Select
29
{
30
/* These will move out once we have args for table functions */
31
std::string show_schema;
32
std::string show_table;
33
bool
if_exists;
34
35
public
:
36
Show
(
Session
*in_session);
37
38
void
setShowPredicate(
const
std::string &schema_arg,
const
std::string &table_arg)
39
{
40
show_schema= schema_arg;
41
show_table= table_arg;
42
}
43
44
void
setShowPredicate(
const
std::string &schema_arg)
45
{
46
show_schema= schema_arg;
47
}
48
49
void
setShowExists(
bool
arg)
50
{
51
if_exists= arg;
52
}
53
54
bool
getShowExists()
55
{
56
return
if_exists;
57
}
58
59
const
std::string getShowSchema()
60
{
61
return
show_schema;
62
}
63
64
const
std::string getShowTable()
65
{
66
return
show_table;
67
}
68
69
bool
execute
();
70
71
bool
isShow() {
return
true
; }
72
};
73
74
}
/* namespace statement */
75
}
/* namespace drizzled */
76
drizzled::statement::Select
Definition:
select.h:28
drizzled::Session
Definition:
session.h:81
drizzled::statement::Show
Definition:
show.h:28
drizzled::statement::Show::execute
bool execute()
Definition:
show.cc:38
drizzled
statement
show.h
Generated on Mon Apr 28 2014 10:07:04 for drizzle by
1.8.6