Nemiver  0.3
nmv-tools.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset:4 -*- */
2 
3 /*
4  *This file is part of the Nemiver Project.
5  *
6  *Dodji is free software; you can redistribute
7  *it and/or modify it under the terms of
8  *the GNU General Public License as published by the
9  *Free Software Foundation; either version 2,
10  *or (at your option) any later version.
11  *
12  *Dodji is distributed in the hope that it will
13  *be useful, but WITHOUT ANY WARRANTY;
14  *without even the implied warranty of
15  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *See the GNU General Public License for more details.
17  *
18  *You should have received a copy of the
19  *GNU General Public License along with Dodji;
20  *see the file COPYING.
21  *If not, write to the Free Software Foundation,
22  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23  *
24  *See COPYRIGHT file copyright information.
25  */
26 
27 #include <iosfwd>
28 #include "nmv-exception.h"
29 #include "nmv-transaction.h"
30 
31 #ifndef __NMV_TOOLS_H__
32 #define __NMV_TOOLS_H__
33 
34 using namespace std;
35 
36 namespace nemiver {
37 namespace common {
38 namespace tools {
39 
40 bool NEMIVER_API execute_sql_command_file (const common::UString &a_sql_cmd_file,
41  Transaction &a_trans,
42  ostream &a_ostream,
43  bool stop_at_first_error=false);
44 
45 bool NEMIVER_API execute_sql_commands_from_istream (istream &a_istream,
46  Transaction &a_trans,
47  ostream &a_ostream,
48  bool stop_at_first_err=false);
49 
50 bool NEMIVER_API execute_one_statement (const common::UString &a_sql_string,
51  Transaction &a_trans,
52  ostream &a_ostream);
53 }//end namespace tools
54 }//end namespace common
55 }//end namespace verissimus
56 
57 #endif //__NMV_TOOL_H__
58 
nemiver::common::tools::execute_sql_commands_from_istream
bool execute_sql_commands_from_istream(istream &a_istream, Transaction &a_trans, ostream &a_ostream, bool stop_at_first_err=false)
nmv-transaction.h
nemiver
Definition: nmv-address.h:31
nemiver::common::tools::execute_sql_command_file
bool execute_sql_command_file(const common::UString &a_sql_cmd_file, Transaction &a_trans, ostream &a_ostream, bool stop_at_first_error=false)
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::common::tools::execute_one_statement
bool execute_one_statement(const common::UString &a_sql_string, Transaction &a_trans, ostream &a_ostream)
nemiver::common::Transaction
the application level persistence transaction class. abstracts a transaction several persistent objec...
Definition: nmv-transaction.h:49
nmv-exception.h
common
Definition: nmv-proc-list-dialog.h:32