Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6dbcstmt.h
Go to the documentation of this file.
1 
10 #ifndef P6DBCSTMT_H__
11 #define P6DBCSTMT_H__ 1
12 
13 #include "p6com.h"
14 #include "p6dbcresultset.h"
15 
16 
17 #ifdef __cplusplus
18 namespace P6R {
19 extern "C" {
20 #endif
21 
35 typedef P6VOID (*P6DBCQUERYRESULT) ( P6ERR resultCode, p6IDBCResultSet* pResults, P6UINT32 rowCount, P6VOID *pCtx );
36 
37 
38 
45 #undef INTERFACE
46 #define INTERFACE p6IDBCStmt
48 {
61  P6DECLCOMMETHOD(bindInteger)(P6THIS_ P6UINT32 index, P6INT32 value ) P6PURE;
62 
75  P6DECLCOMMETHOD(bindUnsigned)(P6THIS_ P6UINT32 index, P6UINT32 value ) P6PURE;
76 
90 
103  P6DECLCOMMETHOD(bindUnsignedLong)(P6THIS_ P6UINT32 index, P6UINT64 value ) P6PURE;
104 
117  P6DECLCOMMETHOD(bindDouble)(P6THIS_ P6UINT32 index, P6FLOAT value ) P6PURE;
118 
132  P6DECLCOMMETHOD(bindString)(P6THIS_ P6UINT32 index, const P6WCHAR* pString ) P6PURE;
133 
146  P6DECLCOMMETHOD(bindDate)(P6THIS_ P6UINT32 index, P6TIME time ) P6PURE;
147 
165  P6DECLCOMMETHOD(bindBlob)(P6THIS_ P6UINT32 index, P6UINT8* pBlob, P6UINT32 length ) P6PURE;
166 
178  P6DECLCOMMETHOD(bindNULL)(P6THIS_ P6UINT32 index ) P6PURE;
179 
188  P6DECLCOMMETHOD(clearBindings)(P6THIS) P6PURE;
189 
217  P6VOID* pCtx,
218  p6IDBCResultSet** pResults,
219  P6UINT32* pRowCount
220  ) P6PURE;
221 };
222 
223 // {3DFB911A-E97B-407c-97AF-FE33B3BB2FC8}
224 #define IF_p6IDBCStmt {0x3dfb911a,0xe97b,0x407c,{0x97,0xaf,0xfe,0x33,0xb3,0xbb,0x2f,0xc8}}
225 
226 #ifdef __cplusplus
227 }
228 } // namespace
229 #endif
230 
231 
232 #endif
233 
234 
235 
236 
237 
238 
uint64_t P6UINT64
Definition: p6types.h:79
uint32_t P6UINT32
Definition: p6types.h:77
#define P6PURE
Definition: p6defs.h:192
This interface supports the creation of a prepared statement which allows binding of values to variab...
Definition: p6dbcstmt.h:47
unsigned char P6UINT8
Definition: p6types.h:71
P6R's database Result Set Interface.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:111
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
int64_t P6INT64
Definition: p6types.h:78
it may not contain all the symbols used by this software If you run into undefined symbol please let us know and we can provide you a build that will be compatible with your specific value
Definition: readme.txt:85
P6VOID(* P6DBCQUERYRESULT)(P6ERR resultCode, p6IDBCResultSet *pResults, P6UINT32 rowCount, P6VOID *pCtx)
P6DBCQUERYRESULT.
Definition: p6dbcstmt.h:35
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:141
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
P6INT64 P6TIME
The wallclock time represented as the number of microseconds since midnight January 1 1970 UTC...
Definition: p6types.h:259
#define P6THIS_
Definition: p6defs.h:193
double P6FLOAT
Definition: p6types.h:93
This interface provides a enumerator type interface to the result set of a query. ...
P6COM definitions and interfaces.
void P6VOID
Definition: p6types.h:109
int32_t P6INT32
Definition: p6types.h:76
#define P6THIS
Definition: p6defs.h:194
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188