MIDAS
Loading...
Searching...
No Matches
SqlBase Class Referenceabstract
Inheritance diagram for SqlBase:

Public Member Functions

virtual int SetDebug (int debug)=0
 
virtual int Connect (const char *dsn=0)=0
 
virtual int Disconnect ()=0
 
virtual bool IsConnected ()=0
 
virtual int Exec (const char *sql)=0
 
virtual int GetNumRows ()=0
 
virtual int GetNumColumns ()=0
 
virtual int Fetch ()=0
 
virtual int Done ()=0
 
virtual int ListTables (std::vector< std::string > *plist)=0
 
virtual int ListColumns (const char *table, std::vector< std::string > *plist)=0
 
virtual const charGetColumn (int icol)=0
 
virtual ~SqlBase ()
 
 SqlBase ()
 
virtual ~SqlBase ()
 
virtual int Connect (const char *path)=0
 
virtual int Disconnect ()=0
 
virtual bool IsConnected ()=0
 
virtual int ListTables (std::vector< std::string > *plist)=0
 
virtual int ListColumns (const char *table_name, std::vector< std::string > *plist)=0
 
virtual int Exec (const char *table_name, const char *sql)=0
 
virtual int ExecDisconnected (const char *table_name, const char *sql)=0
 
virtual int Prepare (const char *table_name, const char *sql)=0
 
virtual int Step ()=0
 
virtual const charGetText (int column)=0
 
virtual time_t GetTime (int column)=0
 
virtual double GetDouble (int column)=0
 
virtual int Finalize ()=0
 
virtual int OpenTransaction (const char *table_name)=0
 
virtual int CommitTransaction (const char *table_name)=0
 
virtual int RollbackTransaction (const char *table_name)=0
 
virtual const charColumnType (int midas_tid)=0
 
virtual bool TypesCompatible (int midas_tid, const char *sql_type)=0
 
virtual std::string QuoteString (const char *s)=0
 
virtual std::string QuoteId (const char *s)=0
 

Public Attributes

int fDebug
 
bool fIsConnected
 
bool fTransactionPerTable
 

Detailed Description

Definition at line 186 of file history_odbc.cxx.

Constructor & Destructor Documentation

◆ ~SqlBase() [1/2]

virtual SqlBase::~SqlBase ( )
inlinevirtual

Definition at line 201 of file history_odbc.cxx.

201{ }; // virtual dtor

◆ SqlBase()

SqlBase::SqlBase ( )
inline

Definition at line 642 of file history_schema.cxx.

642 { // ctor
643 fDebug = 0;
644 fIsConnected = false;
646 };
bool fTransactionPerTable

◆ ~SqlBase() [2/2]

virtual SqlBase::~SqlBase ( )
inlinevirtual

Definition at line 648 of file history_schema.cxx.

648 { // dtor
649 // confirm that the destructor of the concrete class
650 // disconnected the database
651 assert(!fIsConnected);
652 fDebug = 0;
653 fIsConnected = false;
654 }

Member Function Documentation

◆ ColumnType()

virtual const char * SqlBase::ColumnType ( int  midas_tid)
pure virtual
Here is the caller graph for this function:

◆ CommitTransaction()

virtual int SqlBase::CommitTransaction ( const char table_name)
pure virtual
Here is the caller graph for this function:

◆ Connect() [1/2]

virtual int SqlBase::Connect ( const char dsn = 0)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Connect() [2/2]

virtual int SqlBase::Connect ( const char path)
pure virtual

Implemented in SqlDebug.

◆ Disconnect() [1/2]

virtual int SqlBase::Disconnect ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Disconnect() [2/2]

virtual int SqlBase::Disconnect ( )
pure virtual

Implemented in SqlDebug.

◆ Done()

virtual int SqlBase::Done ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Exec() [1/2]

virtual int SqlBase::Exec ( const char sql)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Exec() [2/2]

virtual int SqlBase::Exec ( const char table_name,
const char sql 
)
pure virtual

◆ ExecDisconnected()

virtual int SqlBase::ExecDisconnected ( const char table_name,
const char sql 
)
pure virtual
Here is the caller graph for this function:

◆ Fetch()

virtual int SqlBase::Fetch ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Finalize()

virtual int SqlBase::Finalize ( )
pure virtual
Here is the caller graph for this function:

◆ GetColumn()

virtual const char * SqlBase::GetColumn ( int  icol)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ GetDouble()

virtual double SqlBase::GetDouble ( int  column)
pure virtual
Here is the caller graph for this function:

◆ GetNumColumns()

virtual int SqlBase::GetNumColumns ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ GetNumRows()

virtual int SqlBase::GetNumRows ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ GetText()

virtual const char * SqlBase::GetText ( int  column)
pure virtual
Here is the caller graph for this function:

◆ GetTime()

virtual time_t SqlBase::GetTime ( int  column)
pure virtual
Here is the caller graph for this function:

◆ IsConnected() [1/2]

virtual bool SqlBase::IsConnected ( )
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ IsConnected() [2/2]

virtual bool SqlBase::IsConnected ( )
pure virtual

Implemented in SqlDebug.

◆ ListColumns() [1/2]

virtual int SqlBase::ListColumns ( const char table,
std::vector< std::string > *  plist 
)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ ListColumns() [2/2]

virtual int SqlBase::ListColumns ( const char table_name,
std::vector< std::string > *  plist 
)
pure virtual

Implemented in SqlDebug.

◆ ListTables() [1/2]

virtual int SqlBase::ListTables ( std::vector< std::string > *  plist)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ ListTables() [2/2]

virtual int SqlBase::ListTables ( std::vector< std::string > *  plist)
pure virtual

Implemented in SqlDebug.

◆ OpenTransaction()

virtual int SqlBase::OpenTransaction ( const char table_name)
pure virtual
Here is the caller graph for this function:

◆ Prepare()

virtual int SqlBase::Prepare ( const char table_name,
const char sql 
)
pure virtual
Here is the caller graph for this function:

◆ QuoteId()

virtual std::string SqlBase::QuoteId ( const char s)
pure virtual
Here is the caller graph for this function:

◆ QuoteString()

virtual std::string SqlBase::QuoteString ( const char s)
pure virtual
Here is the caller graph for this function:

◆ RollbackTransaction()

virtual int SqlBase::RollbackTransaction ( const char table_name)
pure virtual
Here is the caller graph for this function:

◆ SetDebug()

virtual int SqlBase::SetDebug ( int  debug)
pure virtual

Implemented in SqlDebug.

Here is the caller graph for this function:

◆ Step()

virtual int SqlBase::Step ( )
pure virtual
Here is the caller graph for this function:

◆ TypesCompatible()

virtual bool SqlBase::TypesCompatible ( int  midas_tid,
const char sql_type 
)
pure virtual
Here is the caller graph for this function:

Member Data Documentation

◆ fDebug

int SqlBase::fDebug

Definition at line 638 of file history_schema.cxx.

◆ fIsConnected

bool SqlBase::fIsConnected

Definition at line 639 of file history_schema.cxx.

◆ fTransactionPerTable

bool SqlBase::fTransactionPerTable

Definition at line 640 of file history_schema.cxx.


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