~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/execute.h

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_EXECUTE_H
22
 
#define DRIZZLED_EXECUTE_H
 
21
#pragma once
 
22
 
 
23
#include <drizzled/visibility.h>
23
24
 
24
25
namespace drizzled
25
26
{
26
27
 
27
 
class Execute
 
28
namespace sql
 
29
{
 
30
  class ResultSet;
 
31
}
 
32
 
 
33
class DRIZZLED_API Execute
28
34
{
29
35
  bool wait;
30
36
  Session &_session;
35
41
 
36
42
  void run(std::string &to_execute);
37
43
  void run(const char *arg, size_t length);
 
44
  void run(std::string &execution_string, sql::ResultSet &result_set);
38
45
 
39
46
  Session &session()
40
47
  {
51
58
 
52
59
} /* namespace drizzled */
53
60
 
54
 
#endif /* DRIZZLED_EXECUTE_H */