Qore Programming Language 1.19.2
Loading...
Searching...
No Matches
SQLStatement Class Reference

This is the public class for DBI drivers supporting Qore's new prepared statement API. More...

#include <SQLStatement.h>

Inherited by QoreSQLStatement.

Public Member Methods

DLLEXPORT DatasourcegetDatasource () const
 returns the Datasource bound to this statement More...
 
DLLEXPORT void * getPrivateData () const
 returns the private DBI-specific data structure for this object
 
template<typename T >
DLLLOCAL T * getPrivateData () const
 returns the private DBI-specific data structure for this object More...
 
DLLEXPORT void setPrivateData (void *data)
 sets the private DBI-specific data structure for this object More...
 
DLLEXPORT void * takePrivateData ()
 returns the private DBI-specific data structure for this object and clears the object
 
template<typename T >
DLLLOCAL T * takePrivateData ()
 returns the private DBI-specific data structure for this object and clears the object More...
 

Detailed Description

This is the public class for DBI drivers supporting Qore's new prepared statement API.

See also
DBIDriver

Member Function Documentation

◆ getDatasource()

DLLEXPORT Datasource * SQLStatement::getDatasource ( ) const

returns the Datasource bound to this statement

Returns
the Datasource bound to this statement

◆ getPrivateData()

template<typename T >
DLLLOCAL T * SQLStatement::getPrivateData ( ) const
inline

returns the private DBI-specific data structure for this object

Since
Qore 1.14

References getPrivateData().

◆ setPrivateData()

DLLEXPORT void SQLStatement::setPrivateData ( void *  data)

sets the private DBI-specific data structure for this object

this should only be called once in the actual DBI driver code

Parameters
datathe data for the DBI driver that holds the driver-specific state of the connection

◆ takePrivateData()

template<typename T >
DLLLOCAL T * SQLStatement::takePrivateData ( )
inline

returns the private DBI-specific data structure for this object and clears the object

Since
Qore 1.14

References takePrivateData().


The documentation for this class was generated from the following file: