1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2011 David Shrewsbury
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.
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.
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
25
#include <drizzled/session.h>
34
SQLExecutor(const std::string &user, const std::string &schema);
36
void markInErrorState()
38
_in_error_state= true;
41
void clearErrorState()
43
_in_error_state= false;
46
const std::string &getErrorMessage()
48
return _error_message;
52
* Execute a batch of SQL statements.
54
* @param sql Batch of SQL statements to execute.
56
* @retval true Success
57
* @retval false Failure
59
bool executeSQL(std::vector<std::string> &sql);
62
drizzled::Session::shared_ptr _session;
66
std::string _error_message;
70
} /* namespace slave */