Create/modify database descriptions
In files TacDb.cc and TacDb.h++
TacDb.h++:
in class TacDb in provate section you can find or add database
table descriptor as:
DbTable *table_name_var;
TacDb.cc:
in constructor you should add:
table_name_var = new DbTable("table_name","table description");
and also add table fields:
table_name_var->add("field_name","field description",FIELD_TYPE);
where FIELD_TYPE =
STR_TYPE - char(), varchar() - string
for this type you should add field size:
table_name_var->add("field_str","description",STR_TYPE,32);
UINT_TYPE - unsigned int
INT_TYPE - ordinary int (remember, usually in SQL databases no signed
int type, and this will unsigned too)
FLOAT_TYPE - float
DATE_TYPE - datetime or similar
BOOL_TYPE - boolean
(c) tacppd development group