SQL Relay C++ API
Public Member Functions | List of all members
sqlrimportxml Class Reference

Inherits sqlrimport, and xmlsax.

Public Member Functions

bool importFromFile (const char *filename)
 
- Public Member Functions inherited from sqlrimport
 sqlrimport ()
 
virtual ~sqlrimport ()
 
void setSqlrConnection (sqlrconnection *sqlrcon)
 
void setSqlrCursor (sqlrcursor *sqlrcur)
 
void setDbType (const char *dbtype)
 
void setObjectName (const char *objectname)
 
void setIgnoreColumns (bool ignorecolumns)
 
void mapColumnName (const char *from, const char *to)
 
void mixedCaseColumnNames ()
 
void lowerCaseColumnNames ()
 
void upperCaseColumnNames ()
 
void mapFieldValue (const char *from, const char *to)
 
void setCommitCount (uint64_t commitcount)
 
void setLogger (logger *lg)
 
void setCoarseLogLevel (uint8_t coarseloglevel)
 
void setFineLogLevel (uint8_t fineloglevel)
 
void setLogIndent (uint32_t logindent)
 
void setLogErrors (bool logerrors)
 

Member Function Documentation

◆ importFromFile()

bool sqlrimportxml::importFromFile ( const char *  filename)
virtual

Imports data from "filename". The table (or sequence) to import the data into will be derived from the import file (eg. from the CSV file name, or from an XML tag inside of the file) or may be overridden using setObjectName() above.

Implements sqlrimport.