Qore Programming Language 0.8.8

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SQLStatement.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3 SQLStatement.h
4
5 Qore Programming Language
6
7 Copyright (C) 2006 - 2013 QoreTechnologies
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #ifndef _QORE_SQLSTATEMENT_H
25 #define _QORE_SQLSTATEMENT_H
26
27 class DatasourceStatementHelper;
28
30
32 class SQLStatement {
33 friend class DBActionHelper;
34 friend class QoreSQLStatement;
35
36 private:
37 struct sql_statement_private *priv; // private implementation
38
39 public:
40 DLLLOCAL SQLStatement();
41 DLLLOCAL ~SQLStatement();
42
44 DLLEXPORT void *getPrivateData() const;
45
47 DLLEXPORT void *takePrivateData();
48
50
53 DLLEXPORT void setPrivateData(void *data);
54
56
58 DLLEXPORT Datasource *getDatasource() const;
59 };
60
61 #endif
SQLStatement::takePrivateData
DLLEXPORT void * takePrivateData()
returns the private DBI-specific data structure for this object and clears the object ...
SQLStatement::getPrivateData
DLLEXPORT void * getPrivateData() const
returns the private DBI-specific data structure for this object
Datasource
the base class for accessing databases in Qore through a Qore DBI driver
Definition: Datasource.h:45
SQLStatement
This is the public class for DBI drivers supporting Qore&#39;s new prepared statement API...
Definition: SQLStatement.h:32
SQLStatement::setPrivateData
DLLEXPORT void setPrivateData(void *data)
sets the private DBI-specific data structure for this object
SQLStatement::getDatasource
DLLEXPORT Datasource * getDatasource() const
returns the Datasource bound to this statement