![]() |
Agroeye
1.0
|
Encapsulation of table in database. More...
#include <DatabaseTable.h>
Public Member Functions | |
| DbTable (const std::string &name) | |
| Constructor of empty table. More... | |
| std::string | getName () const |
| Gets name of the table. More... | |
| size_t | columnsCount () const |
| Gets number of columns in table. More... | |
| void | addColumn (DbColumn column) |
| Adds new column into table. More... | |
| ColumnIteratorConst | begin () const |
| Gets the iterator to first column. More... | |
| ColumnIteratorConst | end () const |
| Gets the iterator to first column behind last. More... | |
| const DbColumn & | getKeyColumn () const |
| Gets the column with Primary Key. More... | |
Encapsulation of table in database.
| agroeye::handlers::DbTable::DbTable | ( | const std::string & | name | ) |
Constructor of empty table.
| name | Name of table. Must be unique in database |
| void agroeye::handlers::DbTable::addColumn | ( | DbColumn | column | ) |
Adds new column into table.
| column | The new column |
| ColumnIteratorConst agroeye::handlers::DbTable::begin | ( | ) | const |
Gets the iterator to first column.
| size_t agroeye::handlers::DbTable::columnsCount | ( | ) | const |
Gets number of columns in table.
| ColumnIteratorConst agroeye::handlers::DbTable::end | ( | ) | const |
Gets the iterator to first column behind last.
| const DbColumn & agroeye::handlers::DbTable::getKeyColumn | ( | ) | const |
Gets the column with Primary Key.
| std::string agroeye::handlers::DbTable::getName | ( | ) | const |
Gets name of the table.
1.8.12