Wtx ~ Wt Extension Library
WtxLib
|
Table Definition. More...
#include <TableDef.h>
Public Member Functions | |
TableDef (const char *tn) | |
ctor More... | |
const char * | tableName () const |
void | push_back (FieldDefBase &fd) |
FieldDefBase * | fieldDef (const std::string &fieldName) const |
const std::vector< FieldDefBase * > & | fieldDefs () const |
std::string | toJson () const |
Table Definition.
This object encapsulates the functionality of a complete database-table definition. This object contains all the necessary definition components to run the application.
The object contains lists of fields and connections and indexes and so on once these components are fully defined within the table definition then it can be used to manufacture the database object within the database server.
Definition at line 72 of file TableDef.h.
|
inline |
ctor
This initializes the table name to the object. The table name is constant and will never change throughout the life of this object.
Definition at line 83 of file TableDef.h.