sqlitepreparedstatement.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Jaroslaw Staniek <js@iidea.pl>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIDB_SQLITEPREPAREDSTATEMENT_H
21//&& !defined SQLITE2
22#define KEXIDB_SQLITEPREPAREDSTATEMENT_H
23
24#include <kexidb/preparedstatement.h>
25#include "sqliteconnection_p.h"
26
27namespace KexiDB {
28
30class SQLitePreparedStatement : public PreparedStatement, SQLiteConnectionInternal
31{
32 public:
33 SQLitePreparedStatement(StatementType type, ConnectionInternal& conn,
34 FieldList& fields);
35
37
38 virtual bool execute();
39
40#ifdef SQLITE2
41 sqlite_vm *prepared_st_handle;
42#else //SQLITE3
43 sqlite3_stmt *prepared_st_handle;
44#endif
45 bool m_resetRequired : 1;
46};
47
48}
49
50#endif
Prepared database command for optimizing sequences of multiple database actions.
StatementType
Defines type of the prepared statement.
High-level database connectivity library with database backend drivers.