All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SQLStatement.h
/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
SQLStatement.h
Qore Programming Language
Copyright (C) 2006 - 2013 QoreTechnologies
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _QORE_SQLSTATEMENT_H
#define _QORE_SQLSTATEMENT_H
class DatasourceStatementHelper;
class SQLStatement {
friend class DBActionHelper;
friend class QoreSQLStatement;
private:
struct sql_statement_private *priv; // private implementation
public:
DLLLOCAL SQLStatement();
DLLLOCAL ~SQLStatement();
DLLEXPORT void *getPrivateData() const;
DLLEXPORT void *takePrivateData();
DLLEXPORT void setPrivateData(void *data);
DLLEXPORT Datasource *getDatasource() const;
};
#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:46
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