Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DatabaseColumnInfo Struct Reference

Structure describing one column in a database table. More...

#include <DatabaseSQLStatements.h>

List of all members.

Public Member Functions

 DatabaseColumnInfo (const char *_name, const char *_type, bool _primaryKey=0, bool _unique=0, const char *_refTable=NULL, const char *_refColumn=NULL, bool _notNull=0, bool _onDeleteCascade=0)
 DatabaseColumnInfo ()

Public Attributes

CStdString name
CStdString type
CStdString refTable
CStdString refColumn
bool primaryKey
bool unique
bool notNull
bool onDeleteCascade


Detailed Description

Structure describing one column in a database table.


Constructor & Destructor Documentation

DatabaseColumnInfo::DatabaseColumnInfo const char *  _name,
const char *  _type,
bool  _primaryKey = 0,
bool  _unique = 0,
const char *  _refTable = NULL,
const char *  _refColumn = NULL,
bool  _notNull = 0,
bool  _onDeleteCascade = 0
[inline]
 

Simple constructor.

DatabaseColumnInfo::DatabaseColumnInfo  )  [inline]
 

Default constructor.


Member Data Documentation

CStdString DatabaseColumnInfo::name
 

Column name.

CStdString DatabaseColumnInfo::type
 

Column type.

CStdString DatabaseColumnInfo::refTable
 

Table name for REFERENCES constrain if needed.

CStdString DatabaseColumnInfo::refColumn
 

Column name for REFERENCES constrain if needed.

bool DatabaseColumnInfo::primaryKey
 

Use PRIMARY KEY constraint?

bool DatabaseColumnInfo::unique
 

Use UNIQUE constraint?

bool DatabaseColumnInfo::notNull
 

Use NOT NULL constraint?

bool DatabaseColumnInfo::onDeleteCascade
 

Use ON DELETE CASCADE constaint? (If set, refTable and refColumn have to be set too.).


The documentation for this struct was generated from the following file:
Generated on Wed Aug 11 22:35:24 2004 for IOPC by Doxygen 1.3.6