KDb

PostgresqlPreparedStatement.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Adam Pigg <adam@piggz.co.uk>
3 Copyright (C) 2010 Jarosław Staniek <staniek@kde.org>
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
27class PostgresqlPreparedStatement : public KDbPreparedStatementInterface, public PostgresqlConnectionInternal
28{
29public:
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
42private:
43 Q_DISABLE_COPY(PostgresqlPreparedStatement)
44};
45
46#endif
Specialized string for escaping.
Prepared statement interface for backend-dependent implementations.
Type
Defines type of the prepared statement.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.