wxdbcolinfused with the wxdb::getcolumns functions for obtaining all retrievable information about a column's definition.
wxchar catalog[128+1]; wxchar schema[128+1]; wxchar tablename[db_max_table_name_len+1]; wxchar colname[db_max_column_name_len+1]; sword sqldatatype; wxchar typename[128+1]; sword columnsize; sword bufferlength; short decimaldigits; short numprecradix; short nullable; wxchar remarks[254+1]; int dbdatatype; // conversion of the 'sqldatatype' // to the generic data type used by // these classes int pkcol; // primary key column 0 = no 1 = first key 2 = second key, etc... wxchar pktablename[db_max_table_name_len+1]; // tables that use this pkey as a fkey int fkcol; // foreign key column 0 = no 1 = first key 2 = second key, etc... wxchar fktablename[db_max_table_name_len+1]; // foreign key table name wxdbcolfor *pcolfor; // how should this column be formattedthe constructor for this class initializes all the values to zero, "", or null. the destructor for this class takes care of deleting the pcolfor 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
wxdbcolinf::initializesimply initializes all member variables to a cleared state. called by the constructor automatically.
|