KDb

PostgresqlPreparedStatement.h
1 /* This file is part of the KDE project
2  Copyright (C) 2005 Adam Pigg <[email protected]>
3  Copyright (C) 2010 JarosÅ‚aw Staniek <[email protected]>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this program; see the file COPYING. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KDB_POSTGRESQLPREPAREDSTATEMENT_H
22 #define KDB_POSTGRESQLPREPAREDSTATEMENT_H
23 
24 #include "KDbPreparedStatementInterface.h"
25 #include "PostgresqlConnection_p.h"
26 
27 class PostgresqlPreparedStatement : public KDbPreparedStatementInterface, public PostgresqlConnectionInternal
28 {
29 public:
30  explicit PostgresqlPreparedStatement(PostgresqlConnectionInternal* conn);
31 
32  ~PostgresqlPreparedStatement() override;
33 
34  bool prepare(const KDbEscapedString& sql) override;
35 
36  Q_REQUIRED_RESULT QSharedPointer<KDbSqlResult> execute(
38  const KDbField::List &selectFieldList,
39  KDbFieldList *insertFieldList,
40  const KDbPreparedStatementParameters &parameters) override;
41 
42 private:
43  Q_DISABLE_COPY(PostgresqlPreparedStatement)
44 };
45 
46 #endif
virtual QSharedPointer< KDbSqlResult > execute(KDbPreparedStatement::Type type, const KDbField::List &selectFieldList, KDbFieldList *insertFieldList, const KDbPreparedStatementParameters &parameters)=0
For implementation, executes the prepared statement Type of statement is specified by the type parame...
Specialized string for escaping.
virtual bool prepare(const KDbEscapedString &sql)=0
Type
Defines type of the prepared statement.
Prepared statement interface for backend-dependent implementations.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:07:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.