Contents Up Previous Next

wxDbInf

Contains information regarding the database connection (datasource name, number of tables, etc). A pointer to a wxDbTableInf is included in this class so a program can create a wxDbTableInf array instance to maintain all information about all tables in the datasource to have all the datasource's information in one memory structure.

Primarily, this class is used internally by the wxWidgets ODBC classes.

    wxChar        catalog[128+1];
    wxChar        schema[128+1];  // typically means owner of table(s)
    int           numTables;      // How many tables does this
                                     datasource have
    wxDbTableInf *pTableInf;      // Equals a new
                                     wxDbTableInf[numTables];
The constructor for this class initializes all the values to zero, "", or NULL.

The destructor for this class takes care of deleting the pTableInf member if it is non-NULL.

See the database classes overview for an introduction to using the ODBC classes.

Include files

<wx/db.h>

Members

wxDbInf::Initialize


wxDbInf::Initialize

Simply initializes all member variables to a cleared state. Called by the constructor automatically.