SQL Relay C++ API
sqlrexport.h
1// Copyright (c) 1999-2018 David Muse
2// See the file COPYING for more information
3
4#ifndef SQLREXPORT_H
5#define SQLREXPORT_H
6
7#include <sqlrelay/private/sqlrexportincludes.h>
8
13class SQLRCLIENT_DLLSPEC sqlrexport {
14 public:
17
19 virtual ~sqlrexport();
20
24
27 void setSqlrCursor(sqlrcursor *sqlrcur);
28
32
36
42 void setTable(const char *table);
43
49 const char *getTable();
50
59 void setExcludeColumns(bool excludecolumns);
60
64
70 const char * const *columnstoexclude);
71
74 const char * const *getColumnsToExclude();
75
79 void setLogger(logger *lg);
80
83 logger *getLogger();
84
90 void setCoarseLogLevel(uint8_t coarseloglevel);
91
94
100 void setFineLogLevel(uint8_t fineloglevel);
101
104
106 void setLogIndent(uint32_t logindent);
107
109 uint32_t getLogIndent();
110
114 void setLogErrors(bool logerrors);
115
119
127 virtual bool exportData();
128
134
135 protected:
156 virtual bool exportStart();
157
181 virtual bool columnsStart();
182
235 virtual bool columnStart();
236
269 virtual bool columnEnd();
270
300 virtual bool columnsEnd();
301
323 virtual bool rowsStart();
324
352 virtual bool rowStart();
353
408 virtual bool fieldStart();
409
441 virtual bool fieldEnd();
442
471 virtual bool rowEnd();
472
495 virtual bool rowsEnd();
496
505 virtual bool beginStart();
506
515 virtual bool beginEnd();
516
525 virtual bool commitStart();
526
535 virtual bool commitEnd();
536
545 virtual bool error(int64_t errornumber,
546 const char *errormessage);
547
572 virtual bool exportEnd();
573
579 void setExcludeRow(bool excluderow);
580
587
592 void setCurrentRow(uint64_t currentrow);
593
598 uint64_t getCurrentRow();
599
605 void setCurrentColumn(uint32_t currentcol);
606
613
619 void setCurrentColumnName(const char *currentcolname);
620
626 const char *getCurrentColumnName();
627
633 void setCurrentField(const char *currentfield);
634
640 const char *getCurrentField();
641
650 void setIsNumericColumn(uint64_t index, bool numeric);
651
657 bool getIsNumericColumn(uint64_t index);
658
665
670 void setExportedRowCount(uint64_t exportedrowcount);
671
672 #include <sqlrelay/private/sqlrexport.h>
673};
674
675#endif
Definition sqlrclient.h:9
Definition sqlrclient.h:391
Definition sqlrexport.h:13
bool getExcludeRow()
const char * getCurrentColumnName()
void setExcludeRow(bool excluderow)
uint8_t getCoarseLogLevel()
virtual bool exportData()
bool getIsNumericColumn(uint64_t index)
void setExportedRowCount(uint64_t exportedrowcount)
uint32_t getLogIndent()
void setLogger(logger *lg)
uint64_t getCurrentRow()
void setCurrentColumn(uint32_t currentcol)
void setFineLogLevel(uint8_t fineloglevel)
void setLogIndent(uint32_t logindent)
void setCurrentRow(uint64_t currentrow)
virtual bool beginStart()
void setIsNumericColumn(uint64_t index, bool numeric)
bool getExcludeColumns()
sqlrcursor * getSqlrCursor()
virtual bool rowsStart()
void setColumnsToExclude(const char *const *columnstoexclude)
virtual bool exportEnd()
virtual bool columnStart()
sqlrconnection * getSqlrConnection()
virtual bool rowEnd()
virtual bool columnEnd()
virtual bool rowStart()
bool getLogErrors()
virtual bool rowsEnd()
virtual bool beginEnd()
void setTable(const char *table)
void clearAreNumericColumns()
virtual ~sqlrexport()
uint64_t getExportedRowCount()
virtual bool columnsEnd()
const char * getTable()
const char * getCurrentField()
void setSqlrConnection(sqlrconnection *sqlrcon)
uint32_t getCurrentColumn()
virtual bool fieldStart()
void setLogErrors(bool logerrors)
virtual bool exportStart()
void setCurrentField(const char *currentfield)
virtual bool columnsStart()
void setCoarseLogLevel(uint8_t coarseloglevel)
const char *const * getColumnsToExclude()
virtual bool commitStart()
void setExcludeColumns(bool excludecolumns)
void setSqlrCursor(sqlrcursor *sqlrcur)
uint8_t getFineLogLevel()
logger * getLogger()
virtual bool error(int64_t errornumber, const char *errormessage)
void setCurrentColumnName(const char *currentcolname)
virtual bool commitEnd()
virtual bool fieldEnd()