Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

look::DbDescribeTable Class Reference

This class can be used to describe tables and queries. More...

#include <dbdescribetable.h>

List of all members.

Public Types

typedef LookTLList<SColumnInfoColumnInfoList

Static Public Methods

bool DescribeTable (const LookString &theTableName, ColumnInfoList &theColumns)
 Describe a table. More...

bool DescribeQuery (DbQuery *theQuery, ColumnInfoList &theColumns)
 Describe a query. More...


Detailed Description

This class can be used to describe tables and queries.

The descriptions are returned in a list of SColumnInfos - the first one is column index 0, and they follow sequentially.

The global connection must have been set before using this class (DbConnection::SetGlobalConnection()).


Member Function Documentation

bool look::DbDescribeTable::DescribeQuery ( DbQuery * theQuery,
ColumnInfoList & theColumns ) [static]
 

Describe a query.

Parameters:
theQuery   Query to describe. This query must have benn prepared.
theColumns   Where the description will be put. If this isn't empty, the newly described columns will be appended.
Returns:
true for success

bool look::DbDescribeTable::DescribeTable ( const LookString & theTableName,
ColumnInfoList & theColumns ) [static]
 

Describe a table.

Parameters:
theTableName   Table to describe
theColumns   Where the description will be put. If this isn't empty, the newly described columns will be appended.
Returns:
true for success


The documentation for this class was generated from the following files:
Generated at Thu Jan 17 12:53:07 2002 for liblookdb by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001